]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(network-manager): use /run/NetworkManager/initrd/neednet in initqueue
authorDusty Mabe <dusty@dustymabe.com>
Tue, 13 Apr 2021 15:45:35 +0000 (11:45 -0400)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 16 Apr 2021 09:12:49 +0000 (11:12 +0200)
commit6a37c6f6302f950df608db3fd45acf9342ee3de2
tree6a24e91eb9391fa51f07032921377b3a64e44883
parentac0e8f7dcc81432311906c3fca0d4211f6a2f68c
fix(network-manager): use /run/NetworkManager/initrd/neednet in initqueue

We don't want to start NetworkManager if networking is not needed.
Right now nm-config.sh lays down /usr/lib/dracut/hooks/initqueue/finished/nm.sh
which will cause the initqueue to run. If nothing exists in
/usr/lib/dracut/hooks/initqueue/finished/ then it will short circuit and
the initqueue won't run anything. But what if something else needed
something to run in the initqueue? nm-run.sh would still get started,
even though /usr/lib/dracut/hooks/initqueue/finished/nm.sh didn't exist.
In this case let's just trigger off of /run/NetworkManager/initrd/neednet
like we are doing in the systemd unit (nm-run.service).
modules.d/35network-manager/nm-run.sh