https://bugzilla.suse.com/show_bug.cgi?id=1173402
https://bugzilla.suse.com/show_bug.cgi?id=1173402#c7
--- Comment #7 from Thomas Blume ---
Thanks, the culprit is in the ifup.sh script.
Because there is no ip= boot parameter, it goes to:
-->
# no ip option directed at our interface?
if [ -z "$NO_AUTO_DHCP" ] && [ ! -e /tmp/net.${netif}.up ]; then
if [ -e /tmp/net.bootdev ]; then
BOOTDEV=$(cat /tmp/net.bootdev)
if [ "$netif" = "$BOOTDEV" ] || [ "$BOOTDEV" = "$(cat
/sys/class/net/${netif}/address)" ]; then
load_ipv6
do_dhcp
fi
else
if getargs 'ip=dhcp6'; then
load_ipv6
do_dhcp -6
fi
if getargs 'ip=dhcp'; then
do_dhcp -4
fi
fi
--<
Comparing that to the setup loop when the ip= parameter is present, the call to
the netroot script is missing:
-->
# Specific configuration, spin through the kernel command line
# looking for ip= lines
for p in $(getargs ip=); do
[...]
# and finally, finish interface set up if there isn't already a script
# to do so (which is the case in the dhcp path)
if [ ! -e $hookdir/initqueue/setup_net_$netif.sh ]; then
setup_net $netif
source_hook initqueue/online $netif
if [ -z "$manualup" ]; then
/sbin/netroot $netif
fi
fi
if command -v wicked >/dev/null && [ -z "$manualup" ]; then
/sbin/netroot $netif
fi
--<
It does setup the ip but not the netroot.
So, without the ip= parameter, dracut doesn't seems to recognize that the
system root is provided via network.
According to the manpage, rd.neednet only commands dracut to set up the
network, but not to provide netroot:
-->
rd.neednet=1
boolean, bring up network even without netroot set
--<
I guess you would have to add a netroot parameter to make dracut aware that
system root is provided via network.
Maybe also root=dhcp works, though.
--
You are receiving this mail because:
You are on the CC list for the bug.