initrd script needs to handle reading of a UUID file for encrypted volumes.

Bug #1510948 reported by Oliver Grawert
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Undecided
Unassigned

Bug Description

when a disk is encrypted it will only have a UUID but not a label. the snappy initrd relies on mounting the writable partition by label...

after decrypting the volume in case there was no label created before encrypting, the boot will not work.

to find the partition the UUID needs to be written somewhere at encryption time (i.e. into a file in the system-boot partition) where the initrd can consume it to find the to-be-decrypted partition.

Oliver Grawert (ogra)
description: updated
Revision history for this message
Oliver Grawert (ogra) wrote :

adding ricmm to the subscribers here

Revision history for this message
Steve Langasek (vorlon) wrote :

There is no bug here. The disk in question doesn't have a label because it wasn't set up with a label.

To set a label on an ext3/4 filesystem, use the -L option to mkfs.ext[34]. You can add a label to an existing filesystem with tune2fs -L.

Changed in snappy:
status: New → Invalid
Revision history for this message
John Lenton (chipaca) wrote :

AIUI the problem is that the filesystem isn't available until the volume is decrypted, and snappy will fail to boot such a system. As the expectation is for snappy systems to boot, this is indeed a bug.

Changed in snappy:
status: Invalid → Confirmed
Revision history for this message
Oliver Grawert (ogra) wrote :

re-worked the title and description for the UUID bit.

summary: - encrypted writable disk will not have a label for finding the partition
+ initrd script needs to handle readin of a UUID file for encrypted
+ volumes.
summary: - initrd script needs to handle readin of a UUID file for encrypted
+ initrd script needs to handle reading of a UUID file for encrypted
volumes.
description: updated
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.