Blame 0009-51-dracut-rescue.install-do-not-unset-installonly-on.patch

Harald Hoyer 52ce14
From 8d28614e4f6d270e57371cde4ea9f1fe776cdb35 Mon Sep 17 00:00:00 2001
Harald Hoyer 52ce14
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 52ce14
Date: Sun, 10 Mar 2013 14:44:16 +0100
Harald Hoyer 52ce14
Subject: [PATCH] 51-dracut-rescue.install: do not unset installonly on remove
Harald Hoyer 52ce14
Harald Hoyer 52ce14
---
Harald Hoyer 52ce14
 51-dracut-rescue.install | 6 ------
Harald Hoyer 52ce14
 1 file changed, 6 deletions(-)
Harald Hoyer 52ce14
Harald Hoyer 52ce14
diff --git a/51-dracut-rescue.install b/51-dracut-rescue.install
Harald Hoyer 52ce14
index 844e578..e5781d3 100755
Harald Hoyer 52ce14
--- a/51-dracut-rescue.install
Harald Hoyer 52ce14
+++ b/51-dracut-rescue.install
Harald Hoyer 52ce14
@@ -55,12 +55,6 @@ case "$COMMAND" in
Harald Hoyer 52ce14
         [[ -f $LOADER_ENTRY ]] || exit 0
Harald Hoyer 52ce14
 
Harald Hoyer 52ce14
         rm -f "$LOADER_ENTRY" "$3"/initrd-rescue
Harald Hoyer 52ce14
-
Harald Hoyer 52ce14
-        if command -v yumdb &>/dev/null; then
Harald Hoyer 52ce14
-            if [[ $(yumdb get installonly kernel-$KERNEL_VERSION 2>/dev/null) == *installonly\ \=\ keep* ]]; then
Harald Hoyer 52ce14
-                yumdb del installonly kernel-$KERNEL_VERSION >/dev/null
Harald Hoyer 52ce14
-            fi
Harald Hoyer 52ce14
-        fi
Harald Hoyer 52ce14
         ;;
Harald Hoyer 52ce14
 
Harald Hoyer 52ce14
     *)