Mailinglist Archive: opensuse-bugs (19487 mails)

< Previous Next >
[Bug 387601] New: automatic kexec on reboot
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 7 May 2008 03:00:05 -0600 (MDT)
  • Message-id: <bug-387601-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=387601


Summary: automatic kexec on reboot
Product: openSUSE 11.0
Version: Beta 1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: tiwai@xxxxxxxxxx
ReportedBy: lnussel@xxxxxxxxxx
QAContact: qa@xxxxxxx
CC: bwalle@xxxxxxxxxx
Found By: ---


What about adding the following code to the reboot/halt script so it
automatically kexec's a new kernel if there is one loaded?

--- /etc/init.d/halt.orig 2008-05-07 10:55:30.000000000 +0200
+++ /etc/init.d/halt 2008-05-07 09:21:39.000000000 +0200
@@ -235,5 +235,13 @@
# Set system console back to intial value
test -n "$REDIRECT" -a -n "$CONSOLE" && setconsole $REDIRECT < $CONSOLE

+if test "$command" = 'reboot' -a -x /sbin/kexec; then
+ read loaded < /sys/kernel/kexec_loaded
+ if test "$loaded" = 1; then
+ echo "Trying kexec..."
+ /sbin/kexec -e
+ echo "kexec failed, using normal reboot"
+ fi
+fi
# Now talk to kernel
exec $command -d -f -n $opts


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >