Skip to content

Commit

Permalink
Use raspi-config to disable predictable network interface names
Browse files Browse the repository at this point in the history
  • Loading branch information
XECDesign committed Oct 5, 2021
1 parent d9b4a4a commit b23d0b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions stage1/01-sys-tweaks/00-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
raspi-config
4 changes: 3 additions & 1 deletion stage1/02-net-tweaks/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion stage1/03-install-packages/00-packages
Original file line number Diff line number Diff line change
@@ -1 +1 @@
libraspberrypi-bin libraspberrypi0 raspi-config
libraspberrypi-bin libraspberrypi0

0 comments on commit b23d0b1

Please sign in to comment.