On Friday 25 November 2005 05:52, Nix wrote:
> On 23 Nov 2005, Rob Landley gibbered uncontrollably:
> > Rather than unmounting rootfs, it deletes everything out of it to free up
> > the space. (It basically does the functional equivalent of "find / -xdev
> > | xargs rm -rf"
>
> Er, find / -xdev | xargs rm -f, I hope.
Yeah. :)
> (rm won't respect the -xdev you gave to find, and, well, if your new root
> is mounted at all, you're dead :) )
It's C code, not shell, so that was off the top of my head. :)
And that, in fact, is one of the big reasons that there's a utility for it:
not accidentally deleting anything out of your root partition is kind of
important.
(Another is that calling chroot and such after deleting their binaries out of
initramfs but before the paths are adjusted so that the ones in the new root
can find their shared libraries is a bit of a headache. It's a lot easier to
just have it all in one binary that's already loaded everything it needs and
frees its memory on exec.)
Rob
--
Steve Ballmer: Innovation! Inigo Montoya: You keep using that word.
I do not think it means what you think it means.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]