Re: pivot_root & linuxrc problem

Mike Galbraith
2001-03-17T10:55:36Z

On Sat, 17 Mar 2001, Bernd Eckenfels wrote:

> In article <Pine.LNX.4.33.0103160822350.1057-100000@mikeg.weiden.de> you wrote:
> > Aha.. so that's it. I've never been able to get /linuxrc to execute
> > automagically. I wonder why /linuxrc executes on Art's system, but
> > not on mine. I can call it whatever I want and it doesn't run unless
> > I explicitly start it with init=whatever.
>
> linuxrc is executed iff:
>
> CONFIG_BLK_DEV_INITRD is defined
> you actually have a initrd mounted
> /dev/console can be found and opened
> a executable "/linuxrc" is in the ramdisk

<g> There's one more important condition to add to this iff list.

ROOT_DEV as set at kbuild or boot time may not be identical with
the device used as a container for the initrd image.

Greetings from bash. My pid is 8
PID TTY STAT TIME COMMAND
1 ? SW 0:05 (swapper)
2 ? SW 0:00 (keventd)
3 ? SW 0:00 (kapm-idled)
4 ? SW 0:00 (kswapd)
5 ? SW 0:00 (kreclaimd)
6 ? SW 0:00 (bdflush)
7 ? SW 0:00 (kupdate)
8 ? S 0:00 /bin/sh /linuxrc
11 ? R 0:00 /bin/ps ax
/dev/root / ext2 rw 0 0
/dev/hda5 /test ext2 rw 0 0
none /proc proc rw 0 0