Bug#782033: kexec-tools: bug only when sysvinit is used
I can confirm this patch fixes the issue. On Sat, 18 Apr 2015 21:23:36 +0200 Willi Mann wi...@debian.org wrote: Hi, I could only reproduce this bug with sysvinit as init system. I think one could use runlevel (if it exists) to detect whether a real shutdown is running. Maybe something like the attached patch could fix the problem (not yet tested). WM -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#782033: kexec-tools: bug only when sysvinit is used
Hi, I could only reproduce this bug with sysvinit as init system. I think one could use runlevel (if it exists) to detect whether a real shutdown is running. Maybe something like the attached patch could fix the problem (not yet tested). WM diff --git a/debian/kexec-load.init.d b/debian/kexec-load.init.d index 28306a7..f4de112 100644 --- a/debian/kexec-load.init.d +++ b/debian/kexec-load.init.d @@ -109,6 +109,9 @@ case $1 in exit 0 fi fi + if [ -x /sbin/runlevel -a $(runlevel | awk '{ print $2 }') != 6 ]; then + exit 0 + fi do_stop ;; *) signature.asc Description: OpenPGP digital signature