Hi, I hope this is the right list for initramfs questions. First I noticed: with initrd I can use real-root-device and pivot_root mechanisms. with initramfs only pivot_root works. My init (or linuxrc) scripts end like this: mount -t xfs -n -o ro /dev/mapper/root /new-root umount -n /sys || true umount -n /dev || true umount -n /proc || true cd /new-root pivot_root . initrd exec chroot . /sbin/init < dev/console > dev/console 2>&1 (works) or echo 0xfd00 > /proc/sys/kernel/real-root-dev umount -n /sys || true umount -n /dev || true umount -n /proc || true (does't work) if my observation is correct, it might be nice to document this in Documentation/early-userspace/ Andreas -- ---------------------[ Ciphire Signature ]---------------------- From: aj@ciphirelabs.com signed email body (569 characters) Date: on 15 December 2004 at 14:33:09 GMT To: klibc@zytor.com ---------------------------------------------------------------- : The message above has been secured using Ciphire Mail. : Verify this signature and download your free encryption : software at www.ciphire.com. The three garbled lines : below are the sender's verifiable encoded signature. ---------------------------------------------------------------- 00fAAAAAEAAAAlS8BBOQIAACkCAAIAAgACACCFlK4A+54we7zwPJsjFBflkYBMj+ KIfUWI8cEb4zJitwEAjuLZDHPnOxRgKfQyXaVwrQqQB78iLphbN7mW+8mUnEFaw7 CB+txkMPonkvlIq5H0U/qB5wyEnjjqL4P/1qV+AQ=------------------[ End Ciphire Signed Message ]----------------
Andreas Jellinghaus [c] wrote:> Hi, > > I hope this is the right list for initramfs questions. > > First I noticed: with initrd I can use real-root-device and pivot_root > mechanisms. with initramfs only pivot_root works.> Actually, normally you would just overmount the rootfs; I've been told pivot_root works, but it doesn't make any sense. See the run-init program in klibc. -hpa