summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-03-09 13:42:26 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-03-09 13:42:26 +0100
commit474701edaeee38c9bac82abb814b9ffbd8eb62c3 (patch)
tree5aaa177b4bbb17d2f1899fb9b0a76e5f8aed6f88 /roles
parentraspios: add support for bookworm (diff)
raspios: remove dphys-swapfile and finalize interface config for bookworm+
Diffstat (limited to 'roles')
-rw-r--r--roles/raspios/image/templates/firstrun.sh.j27
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