pivot_root, switch_root, initramfs and kexec
Leong, Gary
Gary.Leong at nasdaq.com
Thu Aug 2 13:26:02 PDT 2007
I have an unsual situation.
The first OS, a busybox OS, boots up through PXE. This first OS has
"kexec" which is used to boot up a second OS. The second OS (also a
busybox OS) boots up find as long as the system is diskless. However,
when I try to do a switch_root onto the disk (which contains the second
OS binaries), it craps out saying, "switch_root: not rootfs."
But....when I replaced the switch_root with pivot_root style, it works
fine.
So I figure switch_root is checking to see process kicking it off is PID
1, and craps out if it isn't. And pivot_root doesn't check as
thoroughly, or doesn't care if the process kicking it off is PID 1?
How do I find out f the process kicking off is PID 1?
To make it more interesting. I'm using initramfs, not initrd style, but
using pivot_root that is suppose to be used only for initrd style. So
another questions, is there really any harm using pivot_root with
initramfs? It works. Or is pivot_root now able to be used with
initramfs.
Thanks in advance!
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20070802/2ffd7a50/attachment.htm
More information about the busybox
mailing list