Fix dhcp of interface
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user