From 3df5ed0c9527fbf94c90a7e297311b17b41b4fce Mon Sep 17 00:00:00 2001 From: "Michael V. Coppola" Date: Mon, 6 May 2024 12:14:59 -0700 Subject: [PATCH] Use ClientID instead of DUID in dhcpcd requests (#18) - With DUID, new DHCP leases would be issued upon reboot when paired with DHCP servers that respect DUID, instead of reusing the existing DHCP lease. - The MiSTer installation process now generates a random hardware address, so DUID is unnecessary. Including DUID results in wasted leases within a DHCP scope, and can also lead to DNS resolution issues when accessing the device. - More details - https://github.com/MiSTer-devel/Linux-Kernel_MiSTer/issues/29#issuecomment-1214634815 - https://github.com/MiSTer-devel/Linux-Kernel_MiSTer/issues/29#issuecomment-1218916193 - https://misterfpga.org/viewtopic.php?p=74311#p74311 --- create_img.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/create_img.sh b/create_img.sh index 491a64b..9ca315d 100755 --- a/create_img.sh +++ b/create_img.sh @@ -70,6 +70,7 @@ mount -o remount,rw / __EOF__ echo -n $(date +%y%m%d) > ${DSTDIR}/MiSTer.version sed 's/#hostname/hostname/g' -i ${DSTDIR}/etc/dhcpcd.conf +sed -e 's/^#clientid/clientid/' -e 's/^duid/#duid/' -i ${DSTDIR}/etc/dhcpcd.conf echo "Fixing permissions..." chown -R root:root ${DSTDIR} || exit 0