Fix dhcp of interface

This commit is contained in:
Audiobuzz
2026-06-14 09:31:52 +00:00
parent cbd92baae7
commit 942d1cd0dd
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -82,7 +82,12 @@ DOT1X_FRAGMENT=""
if [ "$DISABLE_DOT1X" = "true" ]; then
echo "==> WARNING: building TEST cmdline with rd.dot1x=0 (802.1X + MACsec DISABLED)" >&2
echo " open-port NVMe-oF boot test only — do NOT ship this UKI." >&2
DOT1X_FRAGMENT="rd.dot1x=0 "
# ip=dhcp: with auth disabled, dracut brings the NIC up by DHCP (writes
# resolv.conf, satisfies rd.neednet) so the nvmf module can connect. The
# cmdline otherwise has no ip=, so nothing configures the NIC. Test-only —
# in the secure build the hook owns the link (macsec0); ip=dhcp must NOT be
# set there.
DOT1X_FRAGMENT="rd.dot1x=0 ip=dhcp "
fi
printf '%s' \
"$DOT1X_FRAGMENT" \