mirror of
https://github.com/RPi-Distro/pi-gen.git
synced 2025-08-08 08:25:44 +00:00
Use raspi-config to disable predictable network interface names
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user