From 2f4e6eb7c2053a00aae79ffddac413645535a09afba20e946866d7af38c701e3 Mon Sep 17 00:00:00 2001 From: Michal Marek Date: Tue, 4 Oct 2011 05:02:03 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-source?expand=0&rev=7126 --- postun.sh | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 postun.sh diff --git a/postun.sh b/postun.sh deleted file mode 100644 index e2dddc27..00000000 --- a/postun.sh +++ /dev/null @@ -1,44 +0,0 @@ -# If a kernel package is removed before the next reboot, we assume that the -# multiversion variable in /etc/zypp/zypp.conf is not configured and we delete -# the flag again (fate#312018) -rm -f /boot/do_purge_kernels - -wm2=/usr/lib/module-init-tools/weak-modules2 -nvr=@SUBPACKAGE@-@RPM_VERSION_RELEASE@ - -if [ -e /boot/System.map-@KERNELRELEASE@-@FLAVOR@ ]; then - # the same package was reinstalled or just rebuilt, otherwise the files - # would have been deleted by now - # do not remove anything in this case (bnc#533766) - rm -f /var/run/rpm-$nvr-modules - exit 0 -fi - -if [ @BASE_PACKAGE@ = 0 ]; then - if [ -x $wm2 ]; then - /bin/bash -${-/e/} $wm2 --remove-kernel-modules @KERNELRELEASE@-@FLAVOR@ < /var/run/rpm-$nvr-modules - fi - rm -f /var/run/rpm-$nvr-modules - exit 0 -fi -# Remove symlinks from /lib/modules/$krel/weak-updates/. -if [ -x $wm2 ]; then - /bin/bash -${-/e/} $wm2 --remove-kernel @KERNELRELEASE@-@FLAVOR@ -fi - -# exit out early for Moblin as we don't want to touch the bootloader menu -if [ -f /etc/SuSE-moblin-release ] ; then - exit 0 -fi - -# remove fstab check once perl-Bootloader can cope with it -if [ -f /etc/fstab ]; then - if [ -x /usr/lib/bootloader/bootloader_entry ]; then - /usr/lib/bootloader/bootloader_entry \ - remove \ - @FLAVOR@ \ - @KERNELRELEASE@-@FLAVOR@ \ - @IMAGE@-@KERNELRELEASE@-@FLAVOR@ \ - initrd-@KERNELRELEASE@-@FLAVOR@ - fi -fi