Wrong symlink check for /dev/mapper in cryptroot?
I am having trouble with update-initramfs and an encrypted root partition on Ubuntu. I want an LUKS-encrypted root with the key on a USB stick. After encrypting the partitions and installing Kubuntu, I kept using the live CD to modify crypttab and rebuild the initramfs. At this point I have mounted the new system and chroot'ed into it.
root@ubuntu:
Version: 0.92bubuntu16
root@ubuntu:/# update-initramfs -u ALL
update-initramfs: Generating /boot/initrd.
cryptsetup: NOTE: using /dev/mapper/ubuntu instead of /dev/disk/
This seems a little strange -- it tries to use the encrypted mapping but when the initramfs becomes active on booting the device is not yet mapped.
root@ubuntu:/# ls -l /dev/disk/by-uuid | grep ubuntu
lrwxrwxrwx 1 root root 19 2008-11-30 14:42 3c9a63f0-
root@ubuntu:/# cat /etc/crypttab
# target name, source device, key file, options
swap /dev/disk/
ubuntu /dev/disk/
root@ubuntu:/# cat /etc/fstab
# /dev/mapper/ubuntu UUID=3c9a63f0-
/dev/mapper/ubuntu / ext3 relatime,
/dev/sda2 /boot ext3 relatime 0 2
The warning above comes from /usr/share/
if [ "$link" != "${link#
fi
Seems like the script wants to use a target of a symlink if the symlink does not point to a mapped device.
Shouldn't the check be
if [ ! "${link#
instead?
Robert
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Robert
- Solved:
- Last query:
- Last reply: