Fixes, additional cleanup, etc
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
# If we installed software, be sure to run
|
||||
rm /var/lib/dbus/machine-id
|
||||
|
||||
|
||||
# Before exiting the chroot, remove the diversion:
|
||||
# Earlier this guide asked you to make a backup copy of /sbin/initctl.
|
||||
# If the following command does not restore this file, then restore from the backup copy you made.
|
||||
apt-get update && apt-get upgrade
|
||||
apt-get autoremove --purge -y
|
||||
apt-get autoclean -y
|
||||
apt-get clean
|
||||
|
||||
rm /var/lib/dbus/machine-id
|
||||
rm -rf /tmp/*
|
||||
rm /etc/resolv.conf
|
||||
rm /sbin/initctl
|
||||
rm -rf /usr/src/* # Should be OK to clean this.
|
||||
|
||||
dpkg-divert --rename --remove /sbin/initctl
|
||||
|
||||
# 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
|
||||
|
||||
rm /sbin/initctl
|
||||
dpkg-divert --rename --remove /sbin/initctl
|
||||
|
@@ -8,6 +8,7 @@
|
||||
|
||||
|
||||
function main() {
|
||||
sleep 2 # Used so we can see stub messages
|
||||
clear;
|
||||
start_menu_mesage;
|
||||
read -p "--> : " ANSR
|
||||
|
Reference in New Issue
Block a user