Skip to content

Commit

Permalink
fix(dracut-systemd): remove unused argument
Browse files Browse the repository at this point in the history
The `generator_wait_for_dev` function of the dracut rootfs systemd generator
only uses the first argument. Moreover, RDRETRY is unset at this point.
  • Loading branch information
aafeijoo-suse committed Jan 27, 2023
1 parent a109c61 commit eb75861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/98dracut-systemd/rootfs-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb75861

Please sign in to comment.