Re: pivot_root broken in 2.6.15-rc1-mm2

From: Neil Brown
Date: Tue Nov 22 2005 - 22:01:03 EST

On Wednesday November 23, viro@xxxxxxxxxxxxxxxx wrote:
> On Wed, Nov 23, 2005 at 01:07:28PM +1100, Neil Brown wrote:
> > After putting in copious tracing printk, the offending test is:
> >
> > if (user_nd.mnt->mnt_parent == user_nd.mnt)
> > goto out2; /* not attached */
> >
> > If I remove this, it works (or seems to).
> > Presumably the initial root file system is 'not attached'. But that
> > shouldn't be a problem, should it?
> Initial root is root and will remain root, period.
> > Could this be related to the new shared mounts stuff???
> No. And no, it's not going to change - any memory you win on killing
> initramfs is not going to be worth the extra code needed to special-case
> it.

Ah, OK.
It's just that pivot_root works in this context in, so I
figured it was a breakage.

I'll go read ramfs-rootfs-initramfs.txt

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at