]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/dracut-lib.sh: do not setdebug, if not in initramfs
authorHarald Hoyer <harald@redhat.com>
Thu, 18 Apr 2013 10:54:30 +0000 (12:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 18 Apr 2013 10:54:30 +0000 (12:54 +0200)
modules.d/99base/dracut-lib.sh

index 9f4b2d2a7878779bac6b9961f5e06b8baf775c5b..ae79a8211ff771b5f20ee8b6cdac1ad24958310f 100755 (executable)
@@ -325,6 +325,7 @@ splitsep() {
 }
 
 setdebug() {
+    [ -f /etc/initrd-release ] || return
     if [ -z "$RD_DEBUG" ]; then
         if [ -e /proc/cmdline ]; then
             RD_DEBUG=no