- kdump-do-not-free-fadump-memory-when-immediate-reboot-is-requested.patch Releasing fadump memory can take a long time so skip it when rebooting anyway (bsc#1040610) - kdump-remount-sysroot-readwrite.patch: Also remount writable any mounts that were already mounted readonly by systemd (bsc#1034169) - kdump-source-save_dump.patch: save_dump.sh is designed to be sourced and has numerous toplevel return statements. Source it from the service definition as well to prevent bash complaints. OBS-URL: https://build.opensuse.org/request/show/505037 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=131
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
Subject: Do not free fadump memory when reboot is requested
|
|
References: bsc#1040610
|
|
|
|
Freeing fadump memory can take a long time and doing it when we are going to
|
|
reboot anyway is pointless.
|
|
|
|
In bsc#1034169 a kernel oops is triggered by freeing fadump memory killing
|
|
save_dump.sh and preventing the reboot requested by the user from happening
|
|
entirely.
|
|
|
|
Avoid the issue and speed up reboot by not freeing fadump memory when reboot is
|
|
requested.
|
|
|
|
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
|
|
|
|
--- kdump-0.8.16/init/save_dump.sh~ 2017-06-16 13:59:02.017110055 +0200
|
|
+++ kdump-0.8.16/init/save_dump.sh 2017-06-16 13:59:35.629621303 +0200
|
|
@@ -49,7 +49,8 @@
|
|
|
|
if fadump_enabled; then
|
|
# release memory if possible
|
|
- test -f $FADUMP_RELEASE_MEM && echo 1 > $FADUMP_RELEASE_MEM
|
|
+ [ -f $FADUMP_RELEASE_MEM -a $KDUMP_IMMEDIATE_REBOOT != "yes" \
|
|
+ -a "$KDUMP_IMMEDIATE_REBOOT" != "YES" ] && echo 1 > $FADUMP_RELEASE_MEM
|
|
if [ "$KDUMP_FADUMP_SHELL" = "yes" \
|
|
-o "$KDUMP_FADUMP_SHELL" = "YES" ] ; then
|
|
echo
|