diff --git a/hooks/600-no-debian.chroot b/hooks/600-no-debian.chroot index 886a5005..baaa37cb 100755 --- a/hooks/600-no-debian.chroot +++ b/hooks/600-no-debian.chroot @@ -6,6 +6,9 @@ set -ex echo "I: Removing the debian legacy" +# dpkg-deb and dpkg purposefully left behind +dpkg --purge --force-depends apt libapt-pkg6.0t64 debconf + # store manifest of all installed packages install -m755 -d usr/share/snappy dpkg -l > usr/share/snappy/dpkg.list @@ -29,9 +32,6 @@ dpkg -l > usr/share/snappy/dpkg.list dpkg-query -W --showformat='- ${binary:Package}=${Version}\n' } > /usr/share/snappy/dpkg.yaml -# dpkg-deb and dpkg purposefully left behind -dpkg --purge --force-depends apt libapt-pkg5.0 debconf - rm -r \ var/lib/dpkg \ var/log/apt