linuxrc in 2.6.7
Hi,
I am using 2.6.7 in my embedded linux box. I start with RAMDISK as a
rootfilesystem and finally want to move the rootfile system to RAMFS (I cannot use initramfs for some reasons).
I used following linuxrc script. I see kernel calling do_linuxrc function but none of the commands in the linuxrc are getting executed.
What I am missing ??
linuxrc
--------
!/bin/busybox sh
busybox mount -t ramfs ramfs /mnt
busybox cp -a bin dev etc lib sbin usr var mnt
cd /mnt
busybox mkdir proc initrd
busybox pivot_root . initrd
busybox mount /proc /proc -t proc
busybox --install -s
echo 0x100 >/proc/sys/kernel/real-root-dev