aboutsummaryrefslogtreecommitdiffstats
path: root/stage2
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-07-18 06:47:12 +0200
committerSven Gothel <[email protected]>2021-07-18 06:47:12 +0200
commitdfd67ceb38206a89b055dab32aac8bfac4ac3013 (patch)
treee016b7fbc193601bf0c7a2a99c4ebd22c8edbe59 /stage2
parent0c8fdfd4b1fbe491aa191d939b58f830cf9b3fbb (diff)
stage2 (network): Use dhcpcd for Debian as well; Take dhcp host-name if provided!
Diffstat (limited to 'stage2')
-rw-r--r--stage2/02-net-tweaks/00-packages-sys-debian3
-rwxr-xr-xstage2/02-net-tweaks/01-run.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/stage2/02-net-tweaks/00-packages-sys-debian b/stage2/02-net-tweaks/00-packages-sys-debian
index 1cc3c36..147b9bd 100644
--- a/stage2/02-net-tweaks/00-packages-sys-debian
+++ b/stage2/02-net-tweaks/00-packages-sys-debian
@@ -1 +1,2 @@
-isc-dhcp-client
+#isc-dhcp-client
+dhcpcd5
diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh
index fae4ed0..f5bc54c 100755
--- a/stage2/02-net-tweaks/01-run.sh
+++ b/stage2/02-net-tweaks/01-run.sh
@@ -11,6 +11,8 @@ install -m 644 files/network/enN "${ROOTFS_DIR}/etc/network/interfaces.d/"
install -v -d "${ROOTFS_DIR}/etc/wpa_supplicant"
install -v -m 600 files/wpa_supplicant.conf "${ROOTFS_DIR}/etc/wpa_supplicant/"
+echo "env force_hostname=YES" >> "${ROOTFS_DIR}/etc/dhcpcd.conf"
+
if [ -v WPA_COUNTRY ]; then
echo "country=${WPA_COUNTRY}" >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf"
fi