From 90c5a8046f7c788b698765608dcc582f01567988 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Tue, 13 Nov 2012 14:02:08 -0700 Subject: clean up /proc, /sys mounts --- stage1 | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'stage1') diff --git a/stage1 b/stage1 index 6e189a0..c32eb49 100755 --- a/stage1 +++ b/stage1 @@ -914,13 +914,22 @@ EOF make busybox CROSS_COMPILE=${TARGET}- make install CONFIG_PREFIX=${ROOTFS} - # simple start up script to be invoked by hand, if desired + # add in some basic mount points + [ -d ${ROOTFS}/proc ] || mkdir ${ROOTFS}/proc + [ -d ${ROOTFS}/sys ] || mkdir ${ROOTFS}/sys ( - echo '#!/bin/sh' - echo mount -t proc proc /proc - echo mount -t sysfs sysfs /sys - ) > $ROOTFS/do_mounts.sh - chmod +x $ROOTFS/do_mounts.sh + echo "proc /proc proc defaults 0 0" + echo "sysfs /sys sysfs defaults 0 0" + ) > $ROOTFS/etc/fstab + + # and a place holder for other useful initializations + [ -d ${ROOTFS}/etc/init.d ] || mkdir -p ${ROOTFS}/etc/init.d + echo "#!/bin/sh" > ${ROOTFS}/etc/init.d/rcS + ( + echo "#!/bin/sh" + echo "/bin/mount -a" + ) > $ROOTFS/etc/init.d/rcS + chmod +x ${ROOTFS}/etc/init.d/rcS ;; util-linux ) -- cgit