Hi *,
just tried the new coolness (at least for me) by using kexec. Its
something in recent 2.6 kernels need to load a new kernel into memory
and then 'reboot' it. This is what I used:
--------------------------------------------------------------------
kernel=$(grep "^kernel" /boot/grub/menu.lst|head -1|awk '{print $2}')
options=$(grep "^kernel" /boot/grub/menu.lst|head -1|cut -d\ -f2-)
initrd=$(grep "^initrd" /boot/grub/menu.lst|head -1|awk '{print $2}')
/sbin/kexec --load $kernel --append=\"$options\" --initrd=$initrd
/sbin/kexec --exec
--------------------------------------------------------------------
this uses the first stanza in the /boot/grub/menu.lst as the default
parameters. I installed a new kernel, then uses this shell script. Then
the xserver restarted and I was back in my display manager and after I
did a 'uname -a', I had a new kernel in about one minute. Which would
have happended in a regular reboot but it misses going through the bios
and doing an actual /sbin/reboot. You need the kexec-tools package. Then
I was about to remove my previous linux-image packages.
cheers,
Kev
--
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal |mysite.verizon.net/kevin.mark/|
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keysever: subkeys.pgp.net | my NPO: cfsg.org |
Attachment:
signature.asc
Description: Digital signature