Re: pivot_root & linuxrc problem

From: Mike Galbraith (mikeg@wen-online.de)
Date: Sat Mar 17 2001 - 05:54:34 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 23 2001 - 21:00:10 EST