Problems when booting an encrypted lvm containing btrfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: initramfs-tools
SYSTEM information:
Ubuntu Lucid Lynx (newest, dist-upgrade 20 mins ago :))
Package: initramfs-tools v. 0.92bubuntu71
-------
I installed Ubuntu Lucid Lynx from scratch via the LiveCD installation.
The setup looks like this:
/dev/sda1: /boot (ext3)
/dev/sda2: cryptsetup/lvm containing / (ext4), /var (ext4), /home (ext4)
When the system boots up, it has to unlock the crypted partition, detect the lvm and then mount the partitions.
This works well with the ext4 file system, but ...
Then I booted back into the LiveCD, tared up the contents of the / fs, created a btrfs and untared back the contents. I changed the /etc/fstab file and the /etc/initramfs-
When I rebooted the machine, the password prompt appeared. I entered the password, but the password prompt throw an error ("cryptsetup: unknown fs type, bad password or options", kind of that) and I had to retype my password twice. So in the end, I entered my password three times. Then it mounted all partitions and went on booting. I figured out, that the lvm was detected when I entered my password the first time, so it may be the btrfs.
Althrough btrfs is not supported yet, I think this is a bug. Few people use btrfs and if this bug gets fixed to the next release, it would be very nice.
Thanks.
tags: | added: patch |
affects: | initramfs-tools (Ubuntu) → cryptsetup (Ubuntu) |
Try the attached patch for cryptsetup. It will probably take care of the issue.