diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-03-09 13:42:26 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-03-09 13:42:26 +0100 |
commit | 474701edaeee38c9bac82abb814b9ffbd8eb62c3 (patch) | |
tree | 5aaa177b4bbb17d2f1899fb9b0a76e5f8aed6f88 /roles/raspios | |
parent | raspios: add support for bookworm (diff) |
raspios: remove dphys-swapfile and finalize interface config for bookworm+
Diffstat (limited to 'roles/raspios')
-rw-r--r-- | roles/raspios/image/templates/firstrun.sh.j2 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/raspios/image/templates/firstrun.sh.j2 b/roles/raspios/image/templates/firstrun.sh.j2 index 9e398751..d1829580 100644 --- a/roles/raspios/image/templates/firstrun.sh.j2 +++ b/roles/raspios/image/templates/firstrun.sh.j2 @@ -38,6 +38,11 @@ systemctl disable wpa_supplicant.service {% else %} cat <<EOF >> /etc/network/interfaces +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface auto {{ network.primary.name }} {% if (install_dhcp | default(false)) %} iface {{ network.primary.name }} inet dhcp @@ -76,7 +81,7 @@ raspi-config nonint do_ssh 0 export DEBIAN_FRONTEND=noninteractive export SUDO_FORCE_REMOVE=yes -apt-get purge -q -y userconf-pi avahi-daemon triggerhappy rsync dpkg-dev patch gdb make strace ssh-import-id network-manager udisks2 p7zip p7zip-full sudo +apt-get purge -q -y userconf-pi avahi-daemon triggerhappy rsync dpkg-dev patch gdb make strace ssh-import-id network-manager udisks2 p7zip p7zip-full sudo dphys-swapfile apt-get autoremove -q -y dpkg -l | grep "^rc" | awk "{ print(\$2) }" | xargs -r dpkg -P |