2.4 kernel style boot using pivot_root (RFC)

Tomek Orzechowski orzech at pld.org.pl
Fri Mar 8 13:19:04 CET 2002


On 03/08/02 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.
>> 
>> But it will be inaccessible if /var isn't on root filesystem (and it
>> isn't rare case) so... it must be something on root... in /etc?
>
>Right.
>
>Maybe /lib or /boot ? 

/boot - no; some old machines requires small /boot partition on big
disks. /lib may be good. I have never thought about moving it form
rootfs to another partition. 

-- 
Tomek Orzechowski



More information about the pld-devel-en mailing list