aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>2022-01-10 11:46:41 +0100
committerJóhann B. Guðmundsson <johannbg@gmail.com>2022-02-02 22:56:23 +0000
commit22e683077a686b592da55e1d247b31f65c95d481 (patch)
tree84afba51bb13a40400a8494759d97b09f72bdd4d
parente86397de24f4efa6d36e2bb5ae84b7d9ec69b72d (diff)
downloaddracut-22e683077a686b592da55e1d247b31f65c95d481.tar.gz
fix(network): wrong test of wicked unit
The test for the wicked service is never met because it does not have execute permission.
-rwxr-xr-xmodules.d/40network/module-setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
index 9fd5d806..d5edbf81 100755
--- a/modules.d/40network/module-setup.sh
+++ b/modules.d/40network/module-setup.sh
@@ -17,7 +17,7 @@ depends() {
done
if [ -z "$network_handler" ]; then
- if [[ -x $dracutsysrootdir$systemdsystemunitdir/wicked.service ]]; then
+ if [[ -e $dracutsysrootdir$systemdsystemunitdir/wicked.service ]]; then
network_handler="network-wicked"
elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]] || [[ -x $dracutsysrootdir/usr/lib/nm-initrd-generator ]]; then
network_handler="network-manager"