Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can kexec be used from within initramfs to load up a new image and kernel?

It seems that kexec calls shutdown which then looks for /dev/initctl, which is missing from a busybox initramfs image.

Any guidance would be appreciated!

share|improve this question
up vote 2 down vote accepted

From the kexec man page:

-e (--exec)
      Run the currently loaded kernel. Note that it will  reboot  into
      the loaded kernel without calling shutdown(8).
share|improve this answer
I don't know how I missed that -- thanks! – David Pfeffer Apr 26 '12 at 11:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.