Skip to contentSkip to conversation

linuxrc in 2.6.7

DISCUSSION Amol 1 participant 1 message Dec 21, 2004

lore
Share & tools
lore

Amol

author
#0 lore raw

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