small fixes

This commit is contained in:
2020-05-02 18:35:19 -05:00
parent 59f5d6d53a
commit f8551b67e8
6 changed files with 5 additions and 3 deletions

2
src/COPY_OVER_TO_CHROOT/CLEANUP.sh Normal file → Executable file
View File

@@ -14,7 +14,7 @@ rm -rf /tmp/*
rm /etc/resolv.conf
# Remove old kernels
dpkg -l 'linux-*' | sed '/^ii/!d;/hwe/d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt -y purge; update-grub
# dpkg -l 'linux-*' | sed '/^ii/!d;/hwe/d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt -y purge; update-grub
rm /sbin/initctl
dpkg-divert --rename --remove /sbin/initctl