Re: 2.4.19pre8aa3

Russell King (rmk@arm.linux.org.uk)
Thu, 16 May 2002 09:36:30 +0100


On Thu, May 16, 2002 at 04:32:38AM +0200, Andrea Arcangeli wrote:
> On Wed, May 15, 2002 at 11:06:51PM -0300, Rik van Riel wrote:
> > --- snip from linuxrc ----
> > mount --ro -t $rootfs $rootdev /sysroot
> > pivot_root /sysroot /sysroot/initrd
> > ------
> >
> > This way you can specify both the root fs and - if wanted -
> > special mount options to the root fs. Then you pivot_root(2)
> > to move the root fs to / and the (old) initrd to /initrd.
>
> both lines are completly superflous, very misleading as well. I
> recommend to drop such two lines from all the full blown bug-aware
> linuxrc out there (of course after you apply the ordering fix to the
> kernel).

Have you thought about reading Documentation/initrd.txt and following
the described method? (last modified December 2000 according to the
comments and the mtime on the file).

The method you're using has therefore been marked "obsolete" for almost
two and a half years:

| Obsolete root change mechanism
| ------------------------------
|
| The following mechanism was used before the introduction of pivot_root.
| Current kernels still support it, but you should _not_ rely on its
| continued availability.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- 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/