lkml.org 
[lkml]   [2003]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Is initramfs freed after kernel is booted?
Date
On Monday 17 November 2003 21:03, viro@parcelfarce.linux.theplanet.co.uk 
wrote:
> On Mon, Nov 17, 2003 at 12:50:34PM -0500, Chris Friesen wrote:
> > viro@parcelfarce.linux.theplanet.co.uk wrote:
> > >On Mon, Nov 17, 2003 at 11:06:48AM -0500, Chris Friesen wrote:
> > >>Anyone know why it overmounts rather than pivots?
> > >
> > >Because amount of extra code you lose that way takes more memory than
> > >empty roots takes.
> > >
> > >Remove whatever files you don't need and be done with that.
> >
> > How do you remove files from the old rootfs after the new one has been
> > mounted on top of it?
>
> You do that before ;-)

would the following work?

pivot_root . /initramfs
cd /initramfs && rm -rf *

?? doing it before is rather hard ... you apparently still need something to
execute your mounts :)

-andrey

-
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:58    [W:0.040 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site