Use raspi-config to disable predictable network interface names

This commit is contained in:
Serge Schneider 2021-10-05 15:22:16 +01:00
parent d9b4a4a985
commit b23d0b144d
3 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1 @@
raspi-config

View File

@ -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

View File

@ -1 +1 @@
libraspberrypi-bin libraspberrypi0 raspi-config
libraspberrypi-bin libraspberrypi0