]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dracut-systemd): remove unused argument
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 9 Jan 2023 10:47:06 +0000 (11:47 +0100)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Fri, 27 Jan 2023 15:55:03 +0000 (16:55 +0100)
The `generator_wait_for_dev` function of the dracut rootfs systemd generator
only uses the first argument. Moreover, RDRETRY is unset at this point.

modules.d/98dracut-systemd/rootfs-generator.sh

index 148c1cce7e57ddf9bb40cdc62e920b0f6bdcfeb1..b98e4e5771e0d130bcaa9bf3c5247ea42c5e10ed 100755 (executable)
@@ -104,7 +104,7 @@ esac
 GENERATOR_DIR="$1"
 
 if [ "$rootok" = "1" ]; then
-    generator_wait_for_dev "${root#block:}" "$RDRETRY"
+    generator_wait_for_dev "${root#block:}"
     generator_fsck_after_pre_mount "${root#block:}"
     strstr "$(cat /proc/cmdline)" 'root=' || generator_mount_rootfs "${root#block:}" "$(getarg rootfstype=)" "$(getarg rootflags=)"
 fi