51-dracut-rescue.install: do not unset installonly on remove
authorHarald Hoyer <harald@redhat.com>
Sun, 10 Mar 2013 13:44:16 +0000 (14:44 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 11 Mar 2013 14:12:49 +0000 (15:12 +0100)
51-dracut-rescue.install

index 844e578..e5781d3 100755 (executable)
@@ -55,12 +55,6 @@ case "$COMMAND" in
         [[ -f $LOADER_ENTRY ]] || exit 0
 
         rm -f "$LOADER_ENTRY" "$3"/initrd-rescue
-
-        if command -v yumdb &>/dev/null; then
-            if [[ $(yumdb get installonly kernel-$KERNEL_VERSION 2>/dev/null) == *installonly\ \=\ keep* ]]; then
-                yumdb del installonly kernel-$KERNEL_VERSION >/dev/null
-            fi
-        fi
         ;;
 
     *)