Mailinglist Archive: opensuse-bugs (6764 mails)

< Previous Next >
[Bug 730496] Password is not asked and crypt file is not mounted when booted using systemd

https://bugzilla.novell.com/show_bug.cgi?id=730496

https://bugzilla.novell.com/show_bug.cgi?id=730496#c2


--- Comment #2 from Susan Dittmar <Susan.Dittmar@xxxxxx> 2011-11-25 10:25:42
UTC ---
I found a work-around, though I am not yet sure how to optimize it.

1) In /etc/sysconfig/kernel, add to INITRD_MODULES (... standing for the
modules already in this list):
INITRD_MODULES="... dm_mod dm_crypt aes sha256 sha1"

2) If swap is encrypted, change the grub entry (/boot/grub/menu.lst):
kernel ... resume=/dev/disk/by-id/... ...
becomes
kernel ... luks="cr_swap" resume=/dev/mapper/cr_swap
luks_cr_swap=/dev/disk/by-id/... ...

The option luks is a space separated list, so if you have more encrypted
partitions, they can be added here, each necessitating the appropriate
luks_<partition-name> option aswell.

3) re-create initrd:
mkinitrd_setup
mkinitrd -f "dm luks usb"

I am asked twice for the swap password this way, but at least I am asked at
all!

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References