Package: kexec-tools
Version: 2.0.1-2
/etc/init.d/kexec and /etc/init.d/kexec-load search $PATH
to execute kexec, and so can fail if some other kexec is
found on the path before /sbin/kexec. My firm does exactly
that, installing a custom script in /usr/bin/kexec.
The following patch fixes it by executing /sbin/kexec
directly.
diff -Naurp kexec-tools-orig-2.0.1/debian/kexec.init.d
kexec-tools-2.0.1/debian/kexec.init.d
--- kexec-tools-orig-2.0.1/debian/kexec.init.d 2010-05-11 13:29:19.000000000
-0400
+++ kexec-tools-2.0.1/debian/kexec.init.d 2010-05-11 13:26:10.000000000
-0400
@@ -21,7 +21,7 @@ do_stop () {
test -x /sbin/kexec || exit 0
log_action_msg "Will now restart with kexec"
- kexec -e
+ /sbin/kexec -e
log_failure_msg "kexec failed"
}
diff -Naurp kexec-tools-orig-2.0.1/debian/kexec-load.init.d
kexec-tools-2.0.1/debian/kexec-load.init.d
--- kexec-tools-orig-2.0.1/debian/kexec-load.init.d 2010-05-11
13:29:19.000000000 -0400
+++ kexec-tools-2.0.1/debian/kexec-load.init.d 2010-05-11 13:26:23.000000000
-0400
@@ -34,9 +34,9 @@ do_stop () {
log_action_begin_msg "Loading new kernel image into memory"
if [ -z "$INITRD" ]
then
- kexec -l "$KERNEL_IMAGE" --append="$REAL_APPEND"
+ /sbin/kexec -l "$KERNEL_IMAGE" --append="$REAL_APPEND"
else
- kexec -l "$KERNEL_IMAGE" --initrd="$INITRD"
--append="$REAL_APPEND"
+ /sbin/kexec -l "$KERNEL_IMAGE" --initrd="$INITRD"
--append="$REAL_APPEND"
fi
log_action_end_msg $?
}
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]