Skip to content

Commit

Permalink
Merge pull request #143 from mariux64/dynamic-crashdevice
Browse files Browse the repository at this point in the history
crash-recover: Allow local override
  • Loading branch information
donald authored Dec 6, 2020
2 parents c7e9a67 + cfb4513 commit 416d420
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crashkernel/crash-recovery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ core_size=$(stat -c %s /proc/vmcore)

mount -o remount,rw / /

if test -x /etc/local/crash-recovery.sh; then
. /etc/local/crash-recovery.sh
reboot "/etc/local/crash-recovery.sh has finished"
fi

if mount -L CRASHDUMP /mnt; then
test -e /mnt/crash.vmcore && rm /mnt/crash.vmcore
if (( $(free_space /mnt) - $core_size > 1024*1024*1024 )); then
Expand Down

0 comments on commit 416d420

Please sign in to comment.