Use raspi-config to disable predictable network interface names
This commit is contained in:
parent
d9b4a4a985
commit
b23d0b144d
3 changed files with 5 additions and 2 deletions
1
stage1/01-sys-tweaks/00-packages
Normal file
1
stage1/01-sys-tweaks/00-packages
Normal file
|
@ -0,0 +1 @@
|
|||
raspi-config
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
libraspberrypi-bin libraspberrypi0 raspi-config
|
||||
libraspberrypi-bin libraspberrypi0
|
||||
|
|
Loading…
Reference in a new issue