On Wed, Sep 08, 2004 at 12:26:47PM -0700, Mike Power wrote: > > I am having trouble doing some custom boot steps before init runs. I > have a script /linuxrc that needs to be executed as pid 1 so that it can > turn around and call init when it is done. I followed the directions to > do this using the grub boot loader. In those directions the option > init=/linuxrc is passed to the kernel so that the kernel will execute > the script as pid 1. This option doesn't seem to be working with > yaboot. Initially I didn't have the option set, and it found and > executed the linuxrc script but not as pid 1. Then I moved the script > to /bin/rstrt and added the option init=/bin/rstrt and the kernel did > not find the script. > > Ultimately I need to run as pid 1 so I can hand over boot up to the init > script. How do you do this with the yaboot loader. this has nothing to do with yaboot, yaboot takes whatever your putting on the command line and hands it to the kernel, if the kernel is ignoring you that isn't my problem. unless your configuring yaboot.conf wrong this is a kernel issue, correct yaboot.conf would be as follows (assuming your doing a initrd setup): image=/vmlinux label=foo initrd=/initrd.img initrd-size=8192 append="init=/linuxrc" you can look at /proc/cmdline to confirm what arguments the kernel received. -- Ethan Benson http://www.alaska.net/~erbenson/
Attachment:
pgp00000.pgp
Description: PGP signature