Blame SOURCES/rhbz1167652.patch

fab312
commit dab22a155b78731803058c6a746396de03220362
fab312
Author: Martin Cermak <mcermak@redhat.com>
fab312
Date:   Tue Nov 25 15:58:29 2014 +0100
fab312
fab312
    RHBZ1167652: Boot time probing feature fix
fab312
    
fab312
    * initscript/systemtap.in: Fix regenerating initramfs image
fab312
      without the stap module
fab312
fab312
diff --git a/initscript/systemtap.in b/initscript/systemtap.in
fab312
index 9443384..cd65b3f 100755
fab312
--- a/initscript/systemtap.in
fab312
+++ b/initscript/systemtap.in
fab312
@@ -906,8 +906,13 @@ onboot () {
fab312
     do_failure "Failed to make temporary file in $dir"
fab312
     return 1
fab312
   fi
fab312
-  # Create the initramfs image with stap module enabled.
fab312
-  out=$($DRACUT --add stap --force $TMPINITRAMFS $KRELEASE 2>&1)
fab312
+  if [ ! "$ss" ]; then
fab312
+    # Create the initramfs image without stap module enabled.
fab312
+    out=$($DRACUT --force $TMPINITRAMFS $KRELEASE 2>&1)
fab312
+  else
fab312
+    # Create the initramfs image with stap module enabled.
fab312
+    out=$($DRACUT --add stap --force $TMPINITRAMFS $KRELEASE 2>&1)
fab312
+  fi
fab312
   # dracut will report success even if some modules (e.g. stap) failed
fab312
   # to install some files, so we need to be a bit more involved in
fab312
   # checking for errors