lkml.org 
[lkml]   [2001]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: pivot_root & linuxrc problem
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/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.323 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site