Installation with FDE using alpha5 installer fails on upgrade due to UUID mismatch on PinePhone
Describe your issue
After installation, running apt upgrade brings in several packages by now (24 April 2021, over a month since release). One of the updates triggers upgrade-initramfs which in turn calls cryptsetup that fails to find a drive with the UUID of the encrypted root partition. The result is an unbootable system.
Expected Behavior
UUID should match the actual partition used for encryption and upgrade succeeds.
Observed Behavior
Upgrade fails, and booting after that fails on indefinite waiting for the partition used for encrypted root.
Specific area or package affected
Likely installer, I suspect the UUID is incorrect right from the start.
How reproducible is the bug?
Always (2 out of 2 complete reinstalls).
Steps to reproduce the bug
- Put alpha5 installer on SD card
- Boot PinePhone and install using FDE to SD card with F2FS
- Boot into installed Mobian
- Run apt-get update && apt-get upgrade (observe the error)
- Reboot
What device are you using?
PinePhone (UBPorts edition)
Which mobian repository are you using?
Default mix as provided with the alpha5 installer
How did you get your Mobian Image?
- https://images.mobian-project.org using bmap
Solutions you have tried
Changing /etc/crypttab to match the UUID in ls -l /dev/disk/by-uuid
is sufficient before triggering the upgrade error. If triggered, an additional sudo update-initramfs -u -k all
fixes it.