[lkml]   [2005]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: pivot_root broken in 2.6.15-rc1-mm2
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

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

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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-11-25 14:23    [W:0.049 / U:40.688 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site