51-dracut-rescue.install: do not unset installonly on remove

master
Harald Hoyer 2013-03-10 14:44:16 +01:00
parent fba5fbbdad
commit 8d28614e4f
1 changed files with 0 additions and 6 deletions

View File

@ -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
;;

*)