]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd/dracut-cmdline.sh: output dracut version
authorHarald Hoyer <harald@redhat.com>
Thu, 26 Jul 2012 12:23:31 +0000 (14:23 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Jul 2012 12:23:31 +0000 (14:23 +0200)
modules.d/98systemd/dracut-cmdline.sh

index 77ad1213f7d8e11f937728b4b1e91c95f5223512..927b99a681cbd96f049d442fa10407214f7079f2 100755 (executable)
@@ -12,6 +12,9 @@ if [ -f /dracut-state.sh ]; then
 fi
 type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
 
+[ -f /etc/initrd-release ] && . /etc/initrd-release
+[ -n "$VERSION" ] && info "dracut-$VERSION"
+
 source_conf /etc/conf.d
 
 # run scriptlets to parse the command line