Initrd Question
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line
echo "Initial RAMDISK Loading Starting..."
Did you get this message when trying your initrd? If not, you probably forgot to pass the kernel a root=/dev/ram0 boot option.
Quoted 6 lines
insmod
/lib/megaraid.ko
insmod/lib/aic7xxx.ko
insmod/lib/uhci-hcd.ko
echo "Mounting proc..."
mount -n -t proc none /proc
echo0x0100>/proc/sys/kernel/real-root-dev
This makes no sense as you're using pivot_root. The old method requires terminating the initrd script, then the kernel attempts to mount real-root-dev. That never happens as your script doesn't exit, but execs init instead.
Quoted 2 lines
echo "Mounting real root dev..."
mount -n -o ro/dev/sda2/new_root
This doesn't even match with the 0x0100 above, now does it?
Quoted 2 lines
echo "Running
pivot_root..."pivot_root/new_root /new_root/initrd
You should cd into /new_root before running pivot_root, or does the pivot_root from busybox somehow do this for you?
Quoted 5 lines
if [ -c initrd/dev/.devfsd ]
then
echo "Mounting devfs..."
mount -n -t devfs none dev
fi
Should you check for /dev/.devfsd on the real root here? I thought .devfsd is created by the devfsd process, so wouldn't be on the initrd /dev?
Signature · 2 lines
Ciao, Pascal