Comment 2 for bug 551055

Revision history for this message
Vincent (v-wochnik-yahoo) wrote : Re: [Bug 551055] Re: Problems when booting an encrypted lvm containing btrfs

Stupid question, but what commands do I have to enter to make this patch
work?

Thank you, I really don't know what that cryptsetup crap is about. :D

2010/4/15 gutschke
<<email address hidden><markus%<email address hidden>>
>

> Try the attached patch for cryptsetup. It will probably take care of the
> issue.
>
> ** Patch added: "cryptsetup.diff"
> http://launchpadlibrarian.net/44205307/cryptsetup.diff
>
> --
> Problems when booting an encrypted lvm containing btrfs
> https://bugs.launchpad.net/bugs/551055
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “initramfs-tools” package in Ubuntu: New
>
> 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-tools/modules file so that it contains all necessary
> modules to mount the btrfs.
>
> 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.
>
> To unsubscribe from this bug, go to:
>
> https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/551055/+subscribe
>

--
E-Mail:
   <email address hidden>
ICQ:
   427102527