2.4 kernel style boot using pivot_root (RFC)

Michal Moskal malekith at pld.org.pl
Fri Mar 8 17:39:09 CET 2002


On Fri, Mar 08, 2002 at 09:16:58AM -0700, Aredridel wrote:
> On Fri, Mar 08, 2002 at 02:20:34PM +0100, Michal Moskal wrote:
> > On Fri, Mar 08, 2002 at 01:54:50PM +0100, Jan Rekorajski wrote:
> > > > Bacause it can be on separate partition. /lib/oldroot seems more
> > > > reasonable.
> > > 
> > > There is /mnt directory, maybe /mnt/oldroot?
> > 
> > It is probably better suited, but more prone to removal by stupid
> > user. But it could be solution (with echo "don't delete tralalal..." >
> > /mnt/oldroot/README).
> 
> What about using /mnt itself, since it won't stay mounted after system
> boot anyway?

Looks fine (iff it is always properly unmounted, very early).
As unmounting won't be done by bsp (after some discussion with wiget,
I guess rc-scripts is proper place to do that), this has to be doubly
ensured, that rc-scripts won't mount -a before unmounting initrd.

-- 
: Michal Moskal :::::::: malekith/at/pld.org.pl :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h



More information about the pld-devel-en mailing list