On Mon, 2005-08-22 at 14:49 +0900, Hyung-Koo Kang wrote: > Hi~everybody in this mailing-list. > > i got some pending problem. > > i'd like to convert nash shell in initrd to bash. > > but, some commands did not exist in the bash shell. Hi Mike, The nash manpage explains the commands you are after - "man nash". It also points out that nash is not really a shell, it just looks a lot like one. Why do you wish to use bash in place of nash? Cheers, Ben > > as you know, there are three comands. those are mkrootdev, switchroot > and setquiet. > > 1>mkrootdev > 2>switchroot > 3>setquiet > > what are these three? could somebody explain? > > if you know these can be changed some commands in bash, > please let me know that. > > i already did googling. but i couldn't find that. > > following shows init in nash initrd. > ================================================= > #!/bin/nash > mount -t proc /proc /proc > setquiet > echo Mounted /proc filesystem > echo Mounting sysfs > mount -t sysfs none /sys > echo Creating /dev > mount -o mode=0755 -t tmpfs none /dev > mknod /dev/console c 5 1 > mknod /dev/null c 1 3 > mknod /dev/zero c 1 5 > mkdir /dev/pts > mkdir /dev/shm > echo Starting udev > /sbin/udevstart > echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug > echo "Loading scsi_mod.ko module" > insmod /lib/scsi_mod.ko > echo "Loading sd_mod.ko module" > insmod /lib/sd_mod.ko > echo "Loading BusLogic.ko module" > insmod /lib/BusLogic.ko > echo "Loading jbd.ko module" > insmod /lib/jbd.ko > echo "Loading ext3.ko module" > insmod /lib/ext3.ko > echo "Loading aes-i586.ko module" > insmod /lib/aes-i586.ko > echo "Loading dm-mod.ko module" > insmod /lib/dm-mod.ko > echo "Loading dm-crypt.ko module" > insmod /lib/dm-crypt.ko > echo Creating root device > mkrootdev /dev/root > umount /sys > echo Mounting root filesystem > mount -o defaults --ro -t ext3 /dev/root /sysroot > mount -t tmpfs --bind /dev /sysroot/dev > echo Switching to new root > switchroot /sysroot > umount /initrd/dev > ==================================================== > > thank you very much. > > sincerely, > Mike >