no actual point in apt clean here, since that just cleans files from the bind mount

ubuntu/cosmic
Steve Langasek 7 years ago
parent bc361bc33b
commit dec765f035

@ -31,7 +31,6 @@ chroot binary/boot/squashfs.dir chmod +x /usr/sbin/grub-probe
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get --purge remove --assume-yes '^linux-.*' 'linux-base+' env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get --purge remove --assume-yes '^linux-.*' 'linux-base+'
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get --purge remove --assume-yes '^grub-.*' env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get --purge remove --assume-yes '^grub-.*'
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get autoremove --purge --assume-yes env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get autoremove --purge --assume-yes
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt clean
rm -rf binary/boot/squashfs.dir/boot/grub rm -rf binary/boot/squashfs.dir/boot/grub
chroot binary/boot/squashfs.dir mkdir /lib/modules chroot binary/boot/squashfs.dir mkdir /lib/modules

Loading…
Cancel
Save