Auto-connecting system-backup interface for ubuntu-package-manifest

https://github.com/CanonicalLtd/ubuntu-package-manifest is a new strict snap command line utility to list installed packages and snaps on the host system and is used in conjunction with https://snapcraft.io/ubuntu-cloud-image-changelog .

Discourse post describing it’s use case @ https://discourse.ubuntu.com/t/package-changes-between-two-ubuntu-images/18908 and source available @ https://github.com/CanonicalLtd/ubuntu-package-manifest/tree/main/snap/local

I would like to request auto connecting of the system-backup interface for this snap. system-backup provides read-only access to the system via /var/lib/snapd/hostfs. This interface gives privileged access to system data. ubuntu-package-manifest reads /var/lib/snapd/hostfs/var/lib/dpkg/status and /var/lib/snapd/hostfs/var/lib/snapd/state.json only.

… moved to the right category so it shows up in the review queue …

1 Like

bump on this request please.

@philroche in this case, since the snap only requires access to a few specific files, I think a system-files instance would be a better fit rather than the entirety of hostfs that is provided via system-backup - can you please change ubuntu-package-manifest and we can pursue auto-connect of that instead?

@alexmurray I’ll try that. Thanks