/usr/share/initramfs-toos/hooks/cryptroot does not honour the CRYPTSETUP variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Triaged
|
Medium
|
Dimitri John Ledkov |
Bug Description
The patch https:/
checks via
+if [ -n "$CRYPTSETUP" ] && [ "$CRYPTSETUP" != "n" ]; then
+ setup="yes"
+fi
whether there is CRYPTSETUP=y has been set.
The description of the patch says that CRYPTSETUP=y in
/etc/initramfs-
But it isn't.
update-initramfs calls mkinitramfs. CRYPTSETUP is still set to y.
Then /usr/share/
run_scripts/
cryptroot script is entered, but is unset in the script.
The problem is that update-initramfs does not put /sbin/cryptsetup
into initramfs. My root filesystem is unencrypted but I mount an
encrypted partition during boot, so I need cryptsetup in initramfs.
Ubuntu 13.10
Ralf
Changed in cryptsetup (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cryptsetup (Ubuntu): | |
status: | Confirmed → Triaged |
> The problem is that update-initramfs does not put /sbin/cryptsetup
> into initramfs. My root filesystem is unencrypted but I mount an
> encrypted partition during boot, so I need cryptsetup in initramfs.
Why do you think you need cryptsetup in the initramfs for mounting an encrypted filesystem that isn't the root filesystem? This is meant to be handled via /etc/init/ cryptdisks- udev.conf, with no involvement of the initramfs.