Bug 489718

Summary: Neon installer leaves LUKS system unbootable
Product: [KDE Neon] neon Reporter: Félim Whiteley <felim>
Component: Live/Install imagesAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: critical CC: carlosd.kde, jr, KDE, krammer, neon-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Entering the luks password at boot
LUKS failure message after correctly unlocks from password entry

Description Félim Whiteley 2024-07-04 08:22:57 UTC
Created attachment 171354 [details]
Entering the luks password at boot

SUMMARY
A fresh install of Neon using neon-user-20240627-0718.iso does not boot because the LUKS 

STEPS TO REPRODUCE
1. Create a VM using virt-install
2. Follow the installer wizard and chose erase disk and auto assign partitions and encrypt bootloader in MBR of /dev/vda
3.  Install completes normal and on reboot fails after successfully entering the LUKS password I've attached screenshots

OBSERVED RESULT
Unbootable system

EXPECTED RESULT
Bootable system
Comment 1 Félim Whiteley 2024-07-04 08:23:31 UTC
Created attachment 171355 [details]
LUKS failure message after correctly unlocks from password entry
Comment 2 Carlos De Maine 2024-07-04 12:24:30 UTC
can confirm, wonder why it's broken again.  i'll investigate
Comment 3 Kevin Krammer 2024-08-16 14:39:39 UTC
Can confirm with neon-user-20240814-1547.iso downloaded today

I booted the live system again and did

cryptsetup luksOpen /dev/sda1 maindisk

which worked with the password I had entered during install.
Mounting showed a file system that appears all OK as well.

The same cryptsetup command also works from the initramfs shell that appears at some point after the error.

So it appears that the LUKS setup on the disk itself is fine.
Comment 4 Carlos De Maine 2024-08-31 14:25:40 UTC
should be fixed in latest iso's.  testing and feedback welcomed
Comment 5 Kevin Krammer 2024-09-02 18:06:02 UTC
(In reply to Carlos De Maine from comment #4)
> should be fixed in latest iso's.  testing and feedback welcomed

Just successfully tested neon-user-20240902-1039.iso in VirtualBox.
Will try on real hardware soon
Comment 6 Kevin Krammer 2024-09-05 10:15:49 UTC
(In reply to Kevin Krammer from comment #5)
> (In reply to Carlos De Maine from comment #4)
> > should be fixed in latest iso's.  testing and feedback welcomed
> 
> Just successfully tested neon-user-20240902-1039.iso in VirtualBox.
> Will try on real hardware soon

On hardware the installer failed during partitioning (when choosing "erase disk" option) but eventually I got it to install and the crypt setup works on my real machine now as well
Comment 7 Kevin Krammer 2024-10-20 15:28:17 UTC
Tried again with neon-user-20241020-0745.iso and still works