Blame 0038-systemd-dracut-cmdline.sh-output-dracut-version.patch

Harald Hoyer 12f6cc
From 93d7b823b43207323ca7a2947103b668e905eb94 Mon Sep 17 00:00:00 2001
Harald Hoyer 12f6cc
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 12f6cc
Date: Thu, 26 Jul 2012 14:23:31 +0200
Harald Hoyer 12f6cc
Subject: [PATCH] systemd/dracut-cmdline.sh: output dracut version
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
---
Harald Hoyer 12f6cc
 modules.d/98systemd/dracut-cmdline.sh | 3 +++
Harald Hoyer 12f6cc
 1 file changed, 3 insertions(+)
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
diff --git a/modules.d/98systemd/dracut-cmdline.sh b/modules.d/98systemd/dracut-cmdline.sh
Harald Hoyer 12f6cc
index 77ad121..927b99a 100755
Harald Hoyer 12f6cc
--- a/modules.d/98systemd/dracut-cmdline.sh
Harald Hoyer 12f6cc
+++ b/modules.d/98systemd/dracut-cmdline.sh
Harald Hoyer 12f6cc
@@ -12,6 +12,9 @@ if [ -f /dracut-state.sh ]; then
Harald Hoyer 12f6cc
 fi
Harald Hoyer 12f6cc
 type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
+[ -f /etc/initrd-release ] && . /etc/initrd-release
Harald Hoyer 12f6cc
+[ -n "$VERSION" ] && info "dracut-$VERSION"
Harald Hoyer 12f6cc
+
Harald Hoyer 12f6cc
 source_conf /etc/conf.d
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
 # run scriptlets to parse the command line