network-manager: generate configuration with netroot=

If the root is on network, let nm-initrd-generator create configuration
even if none was explicitly specified on the command line.

Also do the same if /tmp/net.ifaces exists, because the anaconda plugin
creates an empty file in that location in hopes that will make us
configure the network.
master
Lubomir Rintel 2019-05-27 12:43:59 +02:00 committed by Harald Hoyer
parent 4be95b67a7
commit 381ab6b7cd
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,7 @@
#!/bin/sh #!/bin/sh


if [ -n "$netroot" ] || [ -e /tmp/net.ifaces ]; then
echo rd.neednet >> /etc/cmdline.d/35-neednet.conf
fi

/usr/libexec/nm-initrd-generator -- $(getcmdline) /usr/libexec/nm-initrd-generator -- $(getcmdline)