[kexec-tools] mkdumprd: use absolute path of reboot/halt/poweroff
Cong Wang
wangcong at fedoraproject.org
Wed Jul 27 11:54:05 UTC 2011
commit c445864777c1d2549de931eabcefc1286271cd96
Author: Amerigo Wang <amwang at redhat.com>
Date: Wed Jul 27 19:48:51 2011 +0800
mkdumprd: use absolute path of reboot/halt/poweroff
kdump_dracut_modules/99kdumpbase/kdump-lib.sh | 6 +++---
kexec-tools.spec | 5 ++++-
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/kdump_dracut_modules/99kdumpbase/kdump-lib.sh b/kdump_dracut_modules/99kdumpbase/kdump-lib.sh
index 4783a24..52175c4 100755
--- a/kdump_dracut_modules/99kdumpbase/kdump-lib.sh
+++ b/kdump_dracut_modules/99kdumpbase/kdump-lib.sh
@@ -23,13 +23,13 @@ read_kdump_conf()
DEFAULT_ACTION="emergency_shell"
;;
reboot)
- DEFAULT_ACTION="reboot -f"
+ DEFAULT_ACTION="/usr/bin/reboot -f"
;;
halt)
- DEFAULT_ACTION="halt -f"
+ DEFAULT_ACTION="/usr/bin/halt -f"
;;
poweroff)
- DEFAULT_ACTION="poweroff -f"
+ DEFAULT_ACTION="/usr/bin/poweroff -f"
;;
esac
;;
diff --git a/kexec-tools.spec b/kexec-tools.spec
index 1eb596f..074e630 100644
--- a/kexec-tools.spec
+++ b/kexec-tools.spec
@@ -1,6 +1,6 @@
Name: kexec-tools
Version: 2.0.2
-Release: 12%{?dist}
+Release: 13%{?dist}
License: GPLv2
Group: Applications/System
Summary: The kexec/kdump userspace component.
@@ -281,6 +281,9 @@ done
%changelog
+* Wed Jul 27 2011 Cong Wang <xiyou.wangcong at gmail.com> - 2.0.2-13
+- Use absolute path of reboot/halt/poweroff.
+
* Wed Jul 27 2011 Cong Wang <xiyou.wangcong at gmail.com> - 2.0.2-12
- Don't use consolehelper, use real reboot/halt/poweroff.
More information about the scm-commits
mailing list