snapd deb does not ship /var/lib/snapd/snapshots

Bug #1917617 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Committed
High
Paweł Stołowski

Bug Description

when trying to (re-)import taken snapshots through the REST API, this fails due to /var/lib/snapd/snapshots not existing

that directory gets created dynamically if you take a snapshot, but if you try to import on a virgin device through REST calls the dir is not created and an error about this fact is thrown up.

the directory should either be dynamically crated when importing or should simply be shipped via a dirs entry in the deb.

Oliver Grawert (ogra)
description: updated
Changed in snapd:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Paweł Stołowski (stolowski)
Revision history for this message
Paweł Stołowski (stolowski) wrote :

We always create this directory internally (in case it's not there) when creating a snapshot, we should do the same in backend.Import.

Revision history for this message
Paweł Stołowski (stolowski) wrote :
Changed in snapd:
status: Confirmed → In Progress
Changed in snapd:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers