[klibc] only pivot_root supported? [signed]

Andreas Jellinghaus [c] aj at ciphirelabs.com
Wed Dec 15 15:32:28 PST 2004


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 at ciphirelabs.com signed email body (569 characters)
Date: on 15 December 2004 at 14:33:09 GMT
To:   klibc at 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 ]----------------



More information about the klibc mailing list