]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(dracut-systemd): use `DRACUT_VERSION` instead of `VERSION`
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 10 Oct 2023 12:38:38 +0000 (14:38 +0200)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 2 Apr 2024 13:36:26 +0000 (09:36 -0400)
`VERSION` can contain other values unrelated to the dracut version, which
garbles the output.

modules.d/98dracut-systemd/dracut-cmdline.sh

index fa5901a573f709382d9eccb99365b7709d5dc236..13f91a1106f9b248fbef4babcdb76ed7b3948ebc 100755 (executable)
@@ -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