[BusyBox] pivot_root with HardHat Linux 2.0
Harbold, John
John.Harbold at Thales-IFS.com
Wed Feb 27 08:05:06 UTC 2002
Dear BusyBox Dudes,
I'm having trouble with the utility, pivot_root. When I use
pivot_root to swap a initial RAM disk with a Disk-on-Chip, I can not execute
any of the utilities even though I can still see them using the shell's file
completion.
The booting sequences I use is:
* - Boot Linux
* - Expand initrd
* - Mount initrd
* - Execute startup shell script as follows:
----------------
#!/bin/sh -x
# NOTE: The filesystem context is the initial RAM disk
# Mount proc filesystem
/bin/mount /proc /proc -t proc
/bin/sleep 1
# Insert DOC module
/bin/insmod /modules/doc.o
/bin/sleep 1
# Check EXT2 filesystem on DOC
/bin/e2fsck -f -y -B1024 /dev/msys/fla1
/bin/sleep 1
# Mount EXT2 filesystem
/bin/mount /dev/msys/fla1 /mnt/fla1
/bin/sleep 1
# Change directory to DOC
cd /mnt/fla1
# Pivot root filesystem
/bin/pivot_root ./ initrd
# NOTE: At this point, I can't execute any utilities,
# even though they have full pathnames.
/bin/sleep 1
# Start init on DOC
exec /bin/chroot . /bin/init
# End of script
-----------------------
I'm using HardHat Linux 2.4.2-hhl20 kernel with M-Systems Millennium
Disk-on-Chip and BusyBox 0.60.2.
All help would be greatly appreciated, since I'm on a tight
schedule.
Thank you
More information about the busybox
mailing list