We added some tools like xdelta3 and squashfs-tools to the snapd
snap now so that we can use those even if they are not available
on the system. Unfortunately this means that we need to also
carry their libc6 to be truely independent of the host system.
This PR adds libc6 to the snapd snap
We added some tools like xdelta3 and squashfs-tools to the snapd
snap now so that we can use those even if they are not available
on the system. Unfortunately this means that we need to also
carry their libc6 to be truely independent of the host system.
osutil,cmdutil: move CommandFromCore and make it use the snapd snap (if available)
The CommandFromCore helper is currently always looking at the
core snap. With the snapd snap we need to refactor it so that
it uses the snapd snap if available and just falls back to the
core snap.
The osutil.CommandFromCore is not in the rightplace and it also does
not take the snapd snap into account. This PR moves it to the
cmd/cmdutil package (cannot be in cmd because of an import cycle
with cmd/snapinfo.go).
It also tweaks the arguments slightly (no need to pass the
snapMountDir anymore).
This reverts commit f77fbff18acacd73cdc816812517b90a75d6ee0c.
It turns out that we removed PlugsOnly a bit too early. While
it is not used right now it will be used in the future by a
PR that Samuele is working on. So revert the removal here
to ensure it does not slow the work on this PR down.