Invalid entry in install.encrypted_partitions
causes partially installed system
#2578
Labels
bug
Something isn't working
triage
Add this label to issues that should be triaged and prioretized in the next planning call
unconfirmed
Kairos version:
Kairos 3.0.11
CPU architecture, OS, and Version:
Describe the bug
I tried the following today to encrypt a secondary disk with Trusted Boot:
This would not work since the correct stage name is actually
kairos-uki-install.pre.before
, notkairos-install.pre.before
(might want to note that in the documentation for trusted boot). As a result, the commands in the stage above didn’t run and the encryption stage showed an error that it could not find the label (no further description but it was obvious this was for the secondary disk).The regular partitions on the primary disk encrypted normally though. However I noticed that after rebooting the device, my userdata was not on the device. I flashed it again and canceled the shutdown, then checked the contents of the COS_OEM partition: the
/oem/90_custom.yaml
was indeed not there.It seems that when
install.encrypted_partitions
contains an entry for a partition that it can't find, this isn't handled properly and the userdata does not get copied over to the device.To Reproduce
Add a bogus entry to
install.encrypted_partitions
and flash a device. Notice that none of your userdata makes it to/oem
Expected behavior
The installation should either:
The text was updated successfully, but these errors were encountered: