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>
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. distro- info within the snap at /usr/share/ distro- info - it will image/current/ usr/share/ distro- info. So even if it's present,
Because this is a classic snap, when run, distro-info will not see
/usr/share/
be exposed in the VFS only at
/snap/ubuntu-
distro-info won't find it.
This is why `distro-info` *ever* works at all today within the ubuntu-image image/current/ usr/share/ distro- info is currently
snap, since /snap/ubuntu-
empty and would otherwise cause a failure!
-- /www.debian. org/
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:/
<email address hidden> <email address hidden>