btrfs and LUKS when booting on nvme does not recognize LUKS partition and stops #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
btrfs and LUKS when booting on nvme does not recognize LUKS partition and stops
on Butterknife Trixie iso v0.2.1
maybe wrong UUID search in GRUB?
btrfs without LUKS is working fine
● Fixed in v0.2.2 — thanks for the report!
What was happening: with btrfs + LUKS, the installer wasn't telling the new system clearly enough that the disk was encrypted, so on boot it never asked for the passphrase and stalled. ext4 + LUKS and xfs + LUKS worked fine — btrfs is special in that it mounts the disk in multiple pieces (
@,@home,@var_log, …), and that confused the auto-setup into not flagging the disk as needing an unlock prompt.The fix is one extra option in
/etc/crypttab(initramfs) that forces the flag regardless. Single-line change.See the v0.2.2 release notes.
Unfortunately, still not good in v0.2.2, during installation one already sees an error when something is done (by apt) with initrd, this is the same error: device /dev/xxx is not a valid LUKS device
The same error is visible when rebooted after installation, see picture:
0.2.3 out. v0.2.2 didn't actually fix it, sorry.
Real bug: after the installer unlocks LUKS during install, lsblk lists
the mapper device alongside the partitions. The installer indexed
partitions by position and got shifted by one, so on UEFI the wrong
UUID (the unencrypted /boot) was written into /etc/crypttab. At boot,
initramfs resolved that UUID to /boot and tried to unlock it as LUKS.
The ,initramfs flag from 0.2.2 just embedded the wrong entry more
reliably. My earlier "ext4 + LUKS worked" claim was also wrong: same
bug, every filesystem, every disk. Confirmed fixed on SATA + btrfs +
LUKS.
v0.2.3 release notes. Please retest
YES! You did it! ;-)
LUKS + btrfs works fine now, sway is cool too, this is written with using the new install
Thank you!
Some little warnings during install: "host butterknife not found", and once dpkg says something about stdin