Bug 474481 - Freshly installed Neon on encrypted btrfs fails to boot
Summary: Freshly installed Neon on encrypted btrfs fails to boot
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: Live/Install images (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-13 10:10 UTC by Malte S. Stretz
Modified: 2023-09-14 09:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot of partitioning screen (86.36 KB, image/png)
2023-09-13 10:10 UTC, Malte S. Stretz
Details
screenshot of partition details (47.10 KB, image/png)
2023-09-13 10:10 UTC, Malte S. Stretz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Malte S. Stretz 2023-09-13 10:10:16 UTC
Created attachment 161597 [details]
screenshot of partitioning screen

SUMMARY

Due to a failed disk I have to reinstall Neon on my notebook (ie. I know it worked before even though it was a while since I last installed). I'd normally use LUKS+LVM but that is broken (cf. bug 432305) so I amended my partitioning slightly to install the system first on a smaller LUKS encrypted partition and rsync it over to LVM later on. This resulted in a slightly weird partition scheme as shown under ADDITIONAL INFORMATION.

Installation succeded and I rebooted. After the reboot I was not asked for my LUKS passphrase though but was presented with a repeated error message "cryptsetup: ERROR: luks-$uuid: maximum number of tries exceeded". Hitting escape shows a "No key available with this passphrase" even though I am never asked for one. After a while I got dropped to the initramfs shell.

I can reproduce this; on a second try I even wiped all the partitions to make sure no leftover data confuses the system.

STEPS TO REPRODUCE
1. Boot into Neon User Live ISO (neon-user-20230907-0716.iso)
2. Start installer, go to Partitions
3. Select Manual Partitioning
4. Create a partition table similar as the one listed below:
* nvme0n1p1 /boot/efi fat32
* nvme0n1p2 /boot ext4
* nvme0n1p4 / btrfs on LUKS
5. Finish installation
6. Reboot


OBSERVED RESULT
I am not asked for my passphrase and thus can't boot

EXPECTED RESULT
The passphrase prompt should appear

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.27
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

neon@neon:~$ sudo sfdisk -d /dev/nvme0n1
label: gpt
label-id: 56028DB5-15E0-B14B-9491-446745ACF82F
device: /dev/nvme0n1
unit: sectors
first-lba: 2048
last-lba: 1953525134
sector-size: 512

/dev/nvme0n1p1 : start=        2048, size=      524288, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=B1270D48-9AFC-3E47-BB5E-CB45B40611F6
/dev/nvme0n1p2 : start=      526336, size=     1572864, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=01CF4C26-88A9-954F-84B6-C45C144B07B5
/dev/nvme0n1p3 : start=     2099200, size=  1887436800, type=CA7D7CCB-63ED-4C53-861C-1742536059CC, uuid=027E6FB6-A0B6-8B4F-915B-4BA4187C4F98
/dev/nvme0n1p4 : start=  1889536000, size=    63989135, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=83F2B4C9-6EC5-A746-BD38-EBFD00EA41AF
neon@neon:~$ sudo lsblk -f
NAME        FSTYPE      FSVER            LABEL                    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0       squashfs    4.0                                                                                  0   100% /rofs
sda         iso9660     Joliet Extension neon user 20230907-07:36 2023-09-07-07-36-06-00                              
├─sda1      iso9660     Joliet Extension neon user 20230907-07:36 2023-09-07-07-36-06-00                     0   100% /cdrom
├─sda2      vfat        FAT12                                     D5CE-A750                                           
└─sda3      ext4        1.0              writable                 e3683364-4fd6-481c-94aa-5fe3692b5b8c   11.4G     0% /var/log
nvme0n1                                                                                                               
├─nvme0n1p1 vfat        FAT32            EFI                      1809-F832                                           
├─nvme0n1p2 ext4        1.0              boot                     15a9a610-58a9-4111-bbff-4f3728c8e840                
├─nvme0n1p3                                                                                                           
└─nvme0n1p4 crypto_LUKS 1                                         df816089-6730-443d-8141-9e86d02ba371
Comment 1 Malte S. Stretz 2023-09-13 10:10:39 UTC
Created attachment 161598 [details]
screenshot of partition details
Comment 2 Malte S. Stretz 2023-09-13 10:23:16 UTC
I found bug 425213 and is this maybe related?

That whole linked upstream bug report wants me to run away and never touch Calamares and Neon again...

After some digging through the related bugs I found https://github.com/calamares/calamares/issues/1626 which is supposedly fixed already.
Comment 3 Malte S. Stretz 2023-09-13 10:47:12 UTC
Ok, this seems to happen only in combination with btrfs as the root fs. I reinstalled again but this time with ext4 and this time I got my passphrase prompt.