2.4 kernel style boot using pivot_root (RFC)

Michal Moskal malekith at pld.org.pl
Fri Mar 8 12:43:37 CET 2002


On Fri, Mar 08, 2002 at 12:33:48PM +0100, Jakub Bogusz wrote:
> On Fri, Mar 08, 2002 at 12:15:53PM +0100, Michal Moskal wrote:
> >   6) directory to put old root in, could be created automagicly by bsp,
> >      we would have to mount root read-write, create the directory,
> >      and in stage 2 remove it and mount root read-only. But I guess this
> >      isn't very bright idea (to mess with writing root before fsck
> >      has a chance to run).
> 
> Somebody wrote at news:pl.comp.os.linux that in some distribution
> (RedHat or Mandrake) there is persistent empty /initrd directory,
> and when he removed it, system boot failed. Guess why :)
> 
> This may be an answer - but I think it's at least a little nasty...

Having "unused" directory in / is like asking for truble.
But if it's in /var/lib/bsp/initrd, then nobody will remove it.
And if he will... well he's out of luck :)

Removing /sbin/bsp will also prevent system from booting in this
setting, by the way.

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