Re: Is initramfs freed after kernel is booted?

From: Erik Mouw
Date: Mon Nov 17 2003 - 11:26:12 EST


On Mon, Nov 17, 2003 at 11:06:48AM -0500, Chris Friesen wrote:
> Kevin P. Fleming wrote:
>
> >There is no pivot_root happening here; the kernel creates a ramfs and
> >mounts it on / (as rootfs), then unpacks the initramfs cpio archive into
> >it. After doing a few more steps, it overmounts the real root onto /,
> >making the rootfs filesystem invisible. It is not freed in the current
> >kernels.
>
> Anyone know why it overmounts rather than pivots?

IIRC Al Viro did it on purpose, cause in this way he could get rid of
the special casing for the root filesystem in the VFS.


Erik

--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
| Data lost? Stay calm and contact Harddisk-recovery.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/