[klibc] Query regarding initramfs

H. Peter Anvin hpa at zytor.com
Tue Feb 22 07:12:36 PST 2005

Andreas Jellinghaus wrote:
> Hi Rachita,
> known issue: 
> if you do pivot_root on an initramfs, and you try to unmount
> the /initrd (original initramfs), the linux kernel will crash.
> I think that is a bug, and should be fixed, but as far as I know
> there is no progress.

If there is a bug, it's that you can umount it at all.  The rootfs is 
used by the kernel and should not be destroyable.

> But you shoudln't do that anyway. Replace pivot_root with
> run-init from klibc distribution, and you don't have that
> problem.
> try to put back the mount calls from the original run-init.c 
> instead of the pivot_root and you should be fine.

Yes, DO NOT pivot_root the rootfs (initramfs).


More information about the klibc mailing list