-#!/bin/sh
+!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
HALFS=
USERFS=
MODULES=
+HALFS_MNT=
ROOTFS_MNT=
DATAFS_MNT=
MODULES_MNT=
IN_INITRD=0
ROOTFS_MNT="/"
fi
+ HALFS_MNT=${ROOTFS_MNT}/hal
DATAFS_MNT=${ROOTFS_MNT}/opt
MODULES_MNT=${ROOTFS_MNT}/lib/modules
#Workaround code to check whether /hal/lib directory is existed#
#In future, it will be removed#
- if [ -d $ROOTFS_MNT/hal/lib ]; then return; fi
+ if [ -d $HALFS_MNT/lib ]; then return; fi
if [ "$NEED_RESIZEFS" = "1" ]
then
/sbin/resize2fs -f $HALFS
fi
/sbin/fsck -y $HALFS
- /bin/mount $HALFS /sysroot/hal -o ro
+ /bin/mount -o ro $HALFS $HALFS_MNT
}
function write_resized_flag()