lkml.org 
[lkml]   [2007]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [2.6.22-rc4] kexec failed: invalid argument
Date
15 Haz 2007 Cum tarihinde, Eric W. Biederman şunları yazmıştı: 
> Sight unseen I'm guessing that you have a kexec aware distro that is doing
> something in the runlevel change scripts and thus unloading the kernel.
> What do: /sys/kernel/kexec_loaded and /sys/kernel/kexec_crash_loaded say?

Not sure, here is the pseudo output what our init system does;

- Stop running services
- Save random seed, sync clock
- Unmount mounted fs's (this includes proc/sysfs etc.)
- Call kexec -e
- Call reboot

> kexec -e at any point should start a loaded kernel without problems, but it
> is a lot like pressing the reset button. Nothing is guaranteed to be
> shutdown cleanly. Now that journalling filesystems are the norm it is
> quite possible nothing bad will happen to you.

zangetsu ~ #
kexec -l /boot/kernel-2.6.22-rc4-CFS-v16 --append="root=/dev/sda3" --initrd=/boot/initramfs-2.6.22-rc4-CFS-v16
setup_linux_vesafb: 1024x768x16 @ c0000000 +300000
zangetsu ~ # cat /sys/kernel/kexec_loaded
1
zangetsu ~ # cat /sys/kernel/kexec_crash_loaded
0

Cheers
--
S.Çağlar Onur <caglar@pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2007-06-15 10:53    [W:0.048 / U:0.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site