File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
modules.d/35network-manager Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ install() {
3030 inst_multiple ip sed grep
3131
3232 inst NetworkManager
33- inst /usr/libexec/nm-initrd-generator
33+ inst_multiple -o /usr/{lib, libexec} /nm-initrd-generator
3434 inst_multiple -o teamd dhclient
3535 inst_hook cmdline 99 " $moddir /nm-config.sh"
3636 if dracut_module_included " systemd" ; then
@@ -59,7 +59,7 @@ install() {
5959 inst_simple " $moddir /nm-lib.sh" " /lib/nm-lib.sh"
6060
6161 if [[ -x " $initdir /usr/sbin/dhclient" ]]; then
62- inst /usr/libexec/nm-dhcp-helper
62+ inst_multiple -o /usr/{lib, libexec} /nm-dhcp-helper
6363 elif ! [[ -e " $initdir /etc/machine-id" ]]; then
6464 # The internal DHCP client silently fails if we
6565 # have no machine-id
Original file line number Diff line number Diff line change @@ -4,8 +4,15 @@ type getcmdline > /dev/null 2>&1 || . /lib/dracut-lib.sh
44
55nm_generate_connections () {
66 rm -f /run/NetworkManager/system-connections/*
7- # shellcheck disable=SC2046
8- /usr/libexec/nm-initrd-generator -- $( getcmdline)
7+ if [ -x /usr/libexec/nm-initrd-generator ]; then
8+ # shellcheck disable=SC2046
9+ /usr/libexec/nm-initrd-generator -- $( getcmdline)
10+ elif [ -x /usr/lib/nm-initrd-generator ]; then
11+ # shellcheck disable=SC2046
12+ /usr/lib/nm-initrd-generator -- $( getcmdline)
13+ else
14+ derror " nm-initrd-generator not found"
15+ fi
916
1017 if getargbool 0 rd.neednet; then
1118 for i in /usr/lib/NetworkManager/system-connections/* \
You can’t perform that action at this time.
0 commit comments