|
|
|
@ -39,6 +39,14 @@ swapoff /swapfile || true
|
|
|
|
|
rm -f /swapfile |
|
|
|
|
sed -i '/swapfile/d' /etc/fstab |
|
|
|
|
|
|
|
|
|
# Network configuration |
|
|
|
|
interface=$(ip route get 1.1.1.1 | head -1 | cut -d' ' -f5) |
|
|
|
|
|
|
|
|
|
cat <<EOF> /etc/network/interfaces |
|
|
|
|
allow-hotplug $interface |
|
|
|
|
iface $interface inet dhcp |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
# Purge unused Ubuntu packages |
|
|
|
|
PKGS=" |
|
|
|
|
apport |
|
|
|
@ -54,6 +62,7 @@ gnome-power-manager
|
|
|
|
|
gnome-software |
|
|
|
|
gnome-software-common |
|
|
|
|
memtest86+ |
|
|
|
|
network-manager* |
|
|
|
|
orca |
|
|
|
|
popularity-contest |
|
|
|
|
python3-update-manager |
|
|
|
@ -87,7 +96,6 @@ systemctl disable $SERVICES
|
|
|
|
|
|
|
|
|
|
SERVICES=" |
|
|
|
|
grub-common.service |
|
|
|
|
NetworkManager-wait-online.service |
|
|
|
|
plymouth-quit-wait.service |
|
|
|
|
" |
|
|
|
|
systemctl mask $SERVICES |
|
|
|
|