Enhancement in uninstall script in LIS RPM
This commit is contained in:
Родитель
776181b5dc
Коммит
5075aad611
|
@ -12,7 +12,7 @@ if [ ${#lisarr[@]} -gt 0 ]; then
|
|||
rpm -e ${lisarr[@]}
|
||||
exit=$?
|
||||
if [ $exit -eq 0 ]; then
|
||||
echo "Uninstalled Linux Integration Services for Microsoft Hyper-V..."
|
||||
echo "Uninstalled Linux Integration Services for Microsoft Hyper-V. Please reboot your system."
|
||||
else
|
||||
echo "Uninstallation of Linux Integration Services for Microsoft Hyper-V failed , Exiting"
|
||||
exit 1
|
||||
|
|
|
@ -180,7 +180,7 @@ else # package is being erased, not upgraded
|
|||
mkinitrd -f "initrd-$(uname -r).img" "$(uname -r)"
|
||||
cp -f "initrd-$(uname -r).img" /boot/"initrd-$(uname -r).img"
|
||||
rm -rf /opt/files/"initramfs-$(uname -r).img"
|
||||
echo "Linux Integration Services for Hyper-V has been removed.Please remove hda=noprobe hdb=noprobe from grub file and reboot your system."
|
||||
echo "Linux Integration Services for Hyper-V has been removed.Please remove hda=noprobe hdb=noprobe from grub file."
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
|
|
|
@ -193,7 +193,7 @@ else # package is being erased, not upgraded
|
|||
mkinitrd -f "initrd-$(uname -r).img" "$(uname -r)"
|
||||
cp -f "initrd-$(uname -r).img" /boot/"initrd-$(uname -r).img"
|
||||
rm -rf /opt/files/"initramfs-$(uname -r).img"
|
||||
echo "Linux Integration Services for Hyper-V has been removed.Please remove hda=noprobe hdb=noprobe from grub file and reboot your system."
|
||||
echo "Linux Integration Services for Hyper-V has been removed.Please remove hda=noprobe hdb=noprobe from grub file."
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
|
|
|
@ -211,7 +211,7 @@ else # package is being erased, not upgraded
|
|||
rm -rf /opt/files/"initramfs-$(uname -r).img"
|
||||
cp /opt/files/hyperv.conf /etc/depmod.d/
|
||||
rm -rf /opt/files/hyperv.conf
|
||||
echo "Linux Integration Services for Hyper-V has been removed. Please reboot your system."
|
||||
echo "Linux Integration Services for Hyper-V has been removed."
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
|
|
|
@ -245,7 +245,7 @@ else # package is being erased, not upgraded
|
|||
rm -rf /opt/files/"initramfs-$(uname -r).img"
|
||||
cp /opt/files/hyperv.conf /etc/depmod.d/
|
||||
rm -rf /opt/files/hyperv.conf
|
||||
echo "Linux Integration Services for Hyper-V has been removed. Please reboot your system."
|
||||
echo "Linux Integration Services for Hyper-V has been removed."
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
|
|
Загрузка…
Ссылка в новой задаче