Skip to content

Commit

Permalink
fix(dracut-systemd): use DRACUT_VERSION instead of VERSION
Browse files Browse the repository at this point in the history
`VERSION` can contain other values unrelated to the dracut version, which
garbles the output.
  • Loading branch information
aafeijoo-suse authored and LaszloGombos committed Apr 2, 2024
1 parent 728a657 commit a2c6422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/98dracut-systemd/dracut-cmdline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fi
type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh

[ -f /usr/lib/initrd-release ] && . /usr/lib/initrd-release
[ -n "$VERSION" ] && info "dracut-$VERSION"
[ -n "$DRACUT_VERSION" ] && info "dracut-$DRACUT_VERSION"

if ! getargbool 1 'rd.hostonly'; then
[ -f /etc/cmdline.d/99-cmdline-ask.conf ] && mv /etc/cmdline.d/99-cmdline-ask.conf /tmp/99-cmdline-ask.conf
Expand Down

0 comments on commit a2c6422

Please sign in to comment.