Re: [PATCH] mkinitrd rescue mode

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

 



On Mon, 2005-06-06 at 15:28 -0400, Jeff Layton wrote:
> 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.

Already done, thanks.

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

I actually like the recursiveRemove way far more, because it means
"init" is still the only thing we rely on from the mounted fs.  The
result is much more flexibility for the installed system.

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

I'd rather see "call another initramfs script" stuff I mentioned in my
other email...

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

Ew, please no.  Users already erroneously complain about, file bugs
regarding, etc. /initrd way too much, it's better just not to have it if
we can... (and it was recently removed, as well)

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