- Code: Select all
#!/bin/nash
mount /proc /proc -t proc
mount --ro -t iso9660 /dev/hdb /sysroot
mount --ro -t iso9660 /dev/hdc /sysroot
mount --ro -t iso9660 /dev/hdd /sysroot
mount --ro -t iso9660 /dev/hda /sysroot
echo 0x0100 > /proc/sys/kernel/real-root-dev
umount /proc
in /sysroot before the mounting of the cd, i have the bin/sbin/lib type folders in /sysroot and have a symlink for each of them in /. When the CD mounts it should override the folders in /sysroot and magically /bin points to the /sysroot/bin on the iso9660 filesystem. I tested this by putting a statically linked 'ls' program on the root of initrd and executing it to show the files. But when the linuxrc script finishes I get an error about not finding init, and it suggests passing init= option to the kernel. Surely /sbin/init is there, i've checked (I've wasted several CDs on this project). Does anyone know why it would fail to execute, and how to fix it? I'd appreciate any help.
thanks


