Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2011-06-17 17:31:11 +0200
committerMichal Marek <mmarek@suse.cz>2011-06-17 17:31:11 +0200
commita5d90e7697b62d8d565d2036c724b1797e10c1f8 (patch)
treefce394b7ede0190c79d8849b8881d1fe4bd17cfc
parentaa3d6e2b140aac24a432f830d30047b1842aed0b (diff)
parent82f4a5d0dd526d77bd221a368e70d1670b455dea (diff)
Merge branch 'packaging'
-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@