2005-01-01 15:38:58

by Andreas Jellinghaus

[permalink] [raw]
Subject: Re: initramfs: is it supposed to work?

Hi,

run-init seems to mount the new root, rm files in the old root,
mount, chroot, open the console, exec. any reason we can't do
that in shell script commands?

> You don't pivot_root initramfs, because initramfs *IS* rootfs.
>
> Instead, use the run-init program

ok, but still: is it ok for the kernel to die?
after all pivot_root works fine, unless /initrd is unmounted.
what exactly is the kernel internal that makes pivot_root special?

Regards, Andreas