Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31103 - [initscripts] are manually luksOpen'ed partitions closed on shutdown

Attached to Project: Arch Linux
Opened by c (c) - Saturday, 11 August 2012, 11:34 GMT
Last edited by Dave Reisner (falconindy) - Friday, 16 November 2012, 20:50 GMT
Task Type Support Request
Category Packages: Core
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Are manually luksOpen'ed partitions closed on shutdown by either initscripts or systemd units? As a prerequisite are such partitions first unmounted and then luksClose'ed? If they are not closed, can this lead to data corruption?

Steps to reproduce:
- cryptsetup luksOpen /dev/DEV1 DEV1
- mount /dev/mapper/DEV1 /mnt/DEV1
- forget to luksClose and umount before shutdown/reboot in system terminal
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 16 November 2012, 20:50 GMT
Reason for closing:  None
Comment by Eric Belanger (Snowman) - Friday, 16 November 2012, 17:59 GMT
If anyone wants this fixed, post a patch to the projects ml. We're not going to be working on this.
Comment by Eric Belanger (Snowman) - Friday, 16 November 2012, 18:00 GMT
Do you get this issue with systemd?
Comment by c (c) - Friday, 16 November 2012, 20:50 GMT
  • Field changed: Percent Complete (100% → 0%)
Sorry I mistakenly asked for closing because I mixed this task up with another one. The issue is whether anyone can confirm manually luksOpen'ed devices are luksClose'd by systemd now that it's the default and I use it.
Comment by Dave Reisner (falconindy) - Friday, 16 November 2012, 20:50 GMT
If you need volumes closed before shutdown, systemd will do this, initscripts is supposed to, and the ultimate solution would be to use mkinitcpio's shutdown hook.

so, yes.

Loading...