Classic images with certain fstab configurations can end up broken

Bug #1831760 reported by Łukasz Zemczak
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Image
Triaged
Medium
Łukasz Zemczak

Bug Description

For classic images, we have a piece of code that looks at fstab in the just-generated rootfs and makes sure that the root partition is present with the right LABEL. It works in such a way that first the fstab is ran through a regex looking for LABEL= entries and, if found, changes the first one to LABEL=writable. Next, it checks if we now finally have a LABEL=writable in fstab and adds a new one if needed.

That works generally for all cases where the rootfs's fstab first entry is the future's writable partition entry. But since it basically only matches for LABEL=, if the fstab has like any other (non-rootfs) filesystem listed as the first one through a LABEL= as well, it will now change it into LABEL=writable.

The fix should be very easy: we need to match for more than just LABEL=, possibly for '/' as the mountpoint (or something very similar).

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.