Comment 6 for bug 2048922

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 2048922] Re: [3.1][3.1+snap7] debootstrap missing

On Wed, Jan 17, 2024 at 08:00:47AM -0000, Paul Mars wrote:
> What do you mean? We could add distro-info-data to stage-packages and be
> done with it, no?

distro-info hard-codes the path /usr/share/distro-info for its lookups.
Because this is a classic snap, when run, distro-info will not see
/usr/share/distro-info within the snap at /usr/share/distro-info - it will
be exposed in the VFS only at
/snap/ubuntu-image/current/usr/share/distro-info. So even if it's present,
distro-info won't find it.

This is why `distro-info` *ever* works at all today within the ubuntu-image
snap, since /snap/ubuntu-image/current/usr/share/distro-info is currently
empty and would otherwise cause a failure!

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
<email address hidden> <email address hidden>