Re: [PATCH] mkinitrd rescue mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2005-06-04 at 08:50 -0400, Jeff Layton wrote:

> Ok, I've whipped up a new patch. This adds a simple "unlink" function to
> nash. The mkinitrd script now does an "rm /bin/fsck*" (using busybox's
> rm), and then a "unlink /bin/busybox" after the rescue mode and prior to
> the switchroot. That should free up any significant extra memory we
> consume by adding these tools to the initramfs.

That's really not the right solution, or rather not the whole solution,
for the memory problem.  See the patch and discussion in bz 153069 .

> I've done some looking around at whether there is some way to get at the
> initramfs after switchrooting (or whether there is some mechanism to
> cause the kernel to just free it), but haven't found any way to do this
> yet.

You could bind mount it at another location before the MS_MOVE mount
(inside of "switchroot" itself).

-- 
        Peter

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux