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!
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!
FS#5968 - /etc/rc.sysinit and encrypted fs
Attached to Project:
Arch Linux
Opened by Michael (e) - Saturday, 09 December 2006, 12:54 GMT
Last edited by Tobias Powalowski (tpowa) - Saturday, 09 December 2006, 13:16 GMT
Opened by Michael (e) - Saturday, 09 December 2006, 12:54 GMT
Last edited by Tobias Powalowski (tpowa) - Saturday, 09 December 2006, 13:16 GMT
|
DetailsBug in /etc/rc.sysinit. I use encrypted /home (via LUKS) on LVM volume. I use /etc/crypttab. I use password that contains spaces, for example "my password".
1. encrypted fs initializes before LVM. I fixed that at attached rc.sysinit. 2. rc.sysinit handles passwords with spaces incorrectly: it think that password is 2 separate columns. I write a workaround for that (I use '*' instead of ' ' as delimiter in /etc/crypttab) - see rc.sysinit. I think I should use TAB delimiter instead '*' but I don't know how to do it. So new /etc/crypttab should looks like: home*/dev/vghome/lvhome*"my password" |
This task depends upon
rc.sysinit
Initializing lvm2 before encryption is a good idea.
However your second change breaks backwards compatibility badly. I almost solved it now, but still use the old file layout, it will be commited in initscripts 0.8.
I don't see why closing the volumes is necessary (apart from the fact that your patch it wrong), everything works fine without closing.
I also added your rc.shutdown suggestion, but if it fails it fails silently.
This will be part of initscripts 0.8.