You are not logged in.

#1 2005-10-07 01:33:36

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

how to use kexec?

How does one use kexec to replace the kernel without rebooting? I know it's nonessential for a desktop user, but when 2.6.13.3 enters Current, I'd like to be able to upgrade without a restart.

Offline

#2 2005-10-07 08:47:24

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: how to use kexec?

[edit] my orriginal post does not apply anymore...
Here is what I did:
I took the package from AUR, modified the PKGBUILD (removed the script and config file, as they are not needed, so basically only kept the package kexec-tools)
After install, you do (modify for your own situation):

kexec -l /boot/vmlinuz26 --append=root=/dev/hda1

Now the kernel is loaded in memory. To use the kernel, do

kexec -e

One final note: This should be done in non-gui mode I think. At least on my cpu it crashes when x-server is running

Offline

#3 2005-10-07 10:17:18

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: how to use kexec?

Oh... Looks like I need a custom kernel to use kexec. Well, bugger that.

Offline

#4 2005-10-07 10:42:56

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: how to use kexec?

Gullible Jones wrote:

Oh... Looks like I need a custom kernel to use kexec. Well, bugger that.

You can use the kernel26archck kernel form [community], so it's not that much of a problem

Offline

#5 2006-05-16 14:21:18

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

Re: how to use kexec?

i was wondering how does kexec handle modules? if you want to run the same version of a kernel what do you do?

Offline

Board footer

Powered by FluxBB