On 25 Oct 2006, Christopher Marshall verbalised: > Thanks for all the information about initramfs, that was a very informative > post.
I can but try. :) I've stuck my boot scripts online at <http://linux-raid.osdl.org/index.php/RAID_Boot>. I don't know if they'll be any use, but at least it gives you a known-working example. (Well, it works for me and for a few other people, and nobody has told me that it *doesn't* work, although of course that might be because they can no longer boot ;))) ) > It also looks like you may have solved a long standing mystery to me. > Back when I was experimenting with the initrd process linuxrc, > pivot_root, chroot, and init, I noticed that unless I invoked init > with the "-i" argument, which tells init to assume it was called from > the kernel to boot the system, init would always exit with an error > message to the effect that it didn't know what to do. > > I'll bet init was doing that because it's PID was not 1, as you allude > to above. So it assumed it was not being called from the kernel. Indeed. See the top of main() in sysvinit's src/init.c. > Since it had no other arguments, it didn't know what to do and printed > out a syntax guide. I'll have to see if I can reproduce that bug > sometime and see if the PID was something other than 1. Almost certainly. If your /init script is PID 1 (which it normally is) you have to remember to run init via `exec'. busybox's switch_root command had a rather bad diagnostic for this case when I tried to set up an initramfs for the first time, and I spent some time scattering printf()s around until I worked out which of the dozen-or-so failure paths in switch_root was failing. (It has better diagnostics now.) -- `When we are born we have plenty of Hydrogen but as we age our Hydrogen pool becomes depleted.' ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ User-mode-linux-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
