In commit
ab6364da036b4b09c0e5c92b0e21c4d43e4bd4c2
("Adding support for nameserver in ip= boot parameter.")
Debian's live-boot added support for handling nameserver
option inside the ip= boot parameter.
This violates the ip= handling as documented in
https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt
ifaddress="$(echo ${ifline} | cut -f2 -d ':')"
ifnetmask="$(echo ${ifline} | cut -f3 -d ':')"
ifgateway="$(echo ${ifline} | cut -f4 -d ':')"
- nameserver="$(echo ${ifline} | cut -f5 -d ':')"
cat >> "${IFFILE}" << EOF
allow-hotplug ${ifname}
EOF
fi
-
- if [ -n "${nameserver}" ]
- then
- if [ -e "${DNSFILE}" ]
- then
- grep -v ^nameserver "${DNSFILE}" > "${DNSFILE}.tmp"
- mv "${DNSFILE}.tmp" "${DNSFILE}"
- fi
-
- echo "nameserver ${nameserver}" >> "${DNSFILE}"
- fi
done
else
if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]