remodel from UC20 to UC22 with edge snapd fails on ubuntu-save

Bug #2035197 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
In Progress
Undecided
Alfonso Sanchez-Beato

Bug Description

refreshed to snapd from edge, and attempting to remodel to UC22 pc model:

It fails with:

Update assets from gadget "pc" (156)

2023-09-12T09:53:10Z ERROR cannot prepare update for volume structure #4 ("ubuntu-save") on volume pc: structure 4 on volume pc does not have a writable mountpoint in order to update the filesystem content

Should we create a UC22 model with a UC22 gadget that doesn't have ubuntu-save?
Or should we somehow make ubuntu-save optional for upgrades?

Tags: remodel
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

My UC20 system has ubuntu-save

$ mount | grep save
/dev/mapper/ubuntu-save-4c93e473-7631-4d36-b865-7461fa609d03 on /run/mnt/ubuntu-save type ext4 (rw,relatime)
/dev/mapper/ubuntu-save-4c93e473-7631-4d36-b865-7461fa609d03 on /var/lib/snapd/save type ext4 (rw,relatime)
/dev/mapper/ubuntu-save-4c93e473-7631-4d36-b865-7461fa609d03 on /writable/system-data/var/lib/snapd/save type ext4 (rw,relatime)

and it is encrypted.

Not sure what it means about "does not have a writable mountpoint"

Also I don't think there is any filesystem content to update either...

Not sure which mode it is booted in, maybe it is not mounted during that operation for some reason?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

i will check if this is because of encryption. and if unencrypted case works.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

I have been able to reproduce, for the encrypted case. Unencrypted works fine.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :
Changed in snapd (Ubuntu):
assignee: nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato)
status: New → In Progress
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.