From: Lubomir Rintel Date: Mon, 27 May 2019 10:43:59 +0000 (+0200) Subject: network-manager: generate configuration with netroot= X-Git-Tag: 050~192 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=381ab6b7cd2d35bf7f9da63b10c20f5ef6e61a8b;p=thirdparty%2Fdracut.git 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. --- diff --git a/modules.d/35network-manager/nm-config.sh b/modules.d/35network-manager/nm-config.sh index 1339ebe76..1efa737c5 100755 --- a/modules.d/35network-manager/nm-config.sh +++ b/modules.d/35network-manager/nm-config.sh @@ -1,3 +1,7 @@ #!/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)