[PATCH] mkinitrd rescue mode

Jeff Layton jlayton at redhat.com
Mon Jun 6 19:28:27 UTC 2005


On Mon, 2005-06-06 at 14:52 -0400, Peter Jones wrote:

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

Agreed -- I've opened a new BZ today and posted a proposed patch to
recursively remove all files and directories under a given directory
(namely '/'), without crossing mountpoints. I didn't realize there was
already a BZ open on this, so please let me know if you'd like me to
close 159636, and post my patch to 153069.

Though, the more I think about it, I like your second suggestion of
bind-mounting initramfs inside the switchroot routine. Then we could
just use regular coreutils 'rm' to clean it out and unmount it fairly
early in the boot process.

That would also potentially give you the option to leave it intact for
troubleshooting problems inside it after switchrooting (if that were
ever needed). It also keeps us from having to hack a lot of new stuff
into nash.

Maybe if a /initrd directory exists on the "real" root, we could bind-
mount it there and do the cleanup?

-- 
Jeff Layton <jlayton at redhat.com>




More information about the fedora-devel-list mailing list