reopen 1016741
kthxbye

Thanks for attempting to fix this bug!

However, it's not quite fixed yet, because 
/usr/lib/dracut/modules.d/35network-manager/nm-lib.sh checks the wrong path. 
This fixes it:

--- /usr/lib/dracut/modules.d/35network-manager/nm-lib.sh.dpkg-dist     
2022-11-20 08:56:26.000000000 +0100
+++ /usr/lib/dracut/modules.d/35network-manager/nm-lib.sh       2022-12-10 
10:56:08.785448157 +0100
@@ -10,7 +10,7 @@ nm_generate_connections() {
     elif [ -x /usr/lib/nm-initrd-generator ]; then
         # shellcheck disable=SC2046
         /usr/lib/nm-initrd-generator -- $(getcmdline)
-    elif [ -x /usr/lib/nm-initrd-generator ]; then
+    elif [ -x /usr/lib/NetworkManager/nm-initrd-generator ]; then
         # shellcheck disable=SC2046
         /usr/lib/NetworkManager/nm-initrd-generator -- $(getcmdline)
     else


BTW, in the meantime I also noticed that 
/usr/lib/dracut/modules.d/40network/module-setup.sh doesn't check the proper 
nm-initrd-generator path either. This fixes it:

--- /usr/lib/dracut/modules.d/40network/module-setup.sh.dpkg-dist       
2022-11-15 17:49:58.000000000 +0100
+++ /usr/lib/dracut/modules.d/40network/module-setup.sh 2022-12-10 
11:35:04.612714382 +0100
@@ -21,7 +21,7 @@ depends() {
             network_handler="network-wicked"
         elif [[ -e $dracutsysrootdir$systemdsystemunitdir/connman.service ]]; 
then
             network_handler="connman"
-        elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]] || [[ 
-x $dracutsysrootdir/usr/lib/nm-initrd-generator ]]; then
+        elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]] || [[ 
-x $dracutsysrootdir/usr/lib/nm-initrd-generator ]] || [[ -x 
$dracutsysrootdir/usr/lib/NetworkManager/nm-initrd-generator ]]; then
             network_handler="network-manager"
         elif [[ -x $dracutsysrootdir$systemdutildir/systemd-networkd ]]; then
             network_handler="systemd-networkd"

With this, I no longer need to explicitly add the network-manager module in a 
/etc/dracut.conf.d/*.conf file.


-- 
Earthling Michel Dänzer            |                  https://redhat.com
Libre software enthusiast          |         Mesa and Xwayland developer

Reply via email to