Enhancement in uninstall script in LIS RPM

This commit is contained in:
DivyaJyothiKasam 2019-03-19 16:26:27 +05:30 коммит произвёл johnsongeorge-w
Родитель 776181b5dc
Коммит 5075aad611
5 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

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