aboutsummaryrefslogtreecommitdiffstats
path: root/stage1
diff options
context:
space:
mode:
authorSerge Schneider <[email protected]>2021-10-05 15:22:16 +0100
committerSerge Schneider <[email protected]>2021-10-05 17:26:40 +0100
commitb23d0b144df1aeb87814b7ea84f27eaa30392955 (patch)
treeb2131c973f6ab0612f666a422aef2e0be69aca18 /stage1
parentd9b4a4a985fe5a015c0a774c9c75f21a2491c0c3 (diff)
Use raspi-config to disable predictable network interface names
Diffstat (limited to 'stage1')
-rw-r--r--stage1/01-sys-tweaks/00-packages1
-rwxr-xr-xstage1/02-net-tweaks/00-run.sh4
-rw-r--r--stage1/03-install-packages/00-packages2
3 files changed, 5 insertions, 2 deletions
diff --git a/stage1/01-sys-tweaks/00-packages b/stage1/01-sys-tweaks/00-packages
new file mode 100644
index 0000000..9e91ea1
--- /dev/null
+++ b/stage1/01-sys-tweaks/00-packages
@@ -0,0 +1 @@
+raspi-config
diff --git a/stage1/02-net-tweaks/00-run.sh b/stage1/02-net-tweaks/00-run.sh
index 4943cab..95dfbdc 100755
--- a/stage1/02-net-tweaks/00-run.sh
+++ b/stage1/02-net-tweaks/00-run.sh
@@ -3,4 +3,6 @@
echo "${TARGET_HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname"
echo "127.0.1.1 ${TARGET_HOSTNAME}" >> "${ROOTFS_DIR}/etc/hosts"
-ln -sf /dev/null "${ROOTFS_DIR}/etc/systemd/network/99-default.link"
+on_chroot << EOF
+ SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_net_names 1
+EOF
diff --git a/stage1/03-install-packages/00-packages b/stage1/03-install-packages/00-packages
index e8c148c..73edcc9 100644
--- a/stage1/03-install-packages/00-packages
+++ b/stage1/03-install-packages/00-packages
@@ -1 +1 @@
-libraspberrypi-bin libraspberrypi0 raspi-config
+libraspberrypi-bin libraspberrypi0