Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2011-06-17 17:29:41 +0200
committerMichal Marek <mmarek@suse.cz>2011-06-17 17:30:51 +0200
commit82f4a5d0dd526d77bd221a368e70d1670b455dea (patch)
tree775d939e003d397d1c3de565b8019845b7316937
parent9a65e48299dbda54ccda0a416d5638f21876a581 (diff)
- rpm/post.sh: Touch /boot/do_purge_kernels on package install
(fate#312018). - rpm/postun.sh: Remove it again if it still exists on package uninstall.
-rw-r--r--rpm/post.sh3
-rw-r--r--rpm/postun.sh5
2 files changed, 8 insertions, 0 deletions
diff --git a/rpm/post.sh b/rpm/post.sh
index de4ccc8865..1aa6190f77 100644
--- a/rpm/post.sh
+++ b/rpm/post.sh
@@ -1,3 +1,6 @@
+# Flag to trigger /etc/init.d/purge-kernels on next reboot (fate#312018)
+touch /boot/do_purge_kernels
+
# It must be possible to install different kernel.rpm packages in parallel.
# But in this post install script, the /boot/vmlinux symlink is replaced.
# On powerpc, the different kernels are for different board/firmware types
diff --git a/rpm/postun.sh b/rpm/postun.sh
index 39b64ec416..c80f67be08 100644
--- a/rpm/postun.sh
+++ b/rpm/postun.sh
@@ -1,3 +1,8 @@
+# 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@