Change-Id: Ica45471e6801ceca95d14a0be1a6d1dc75712814
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
/sbin/resize2fs -f $ROOTFS
/sbin/fsck -y $ROOTFS
fi
- /bin/mount $ROOTFS /sysroot -o ro
+ /bin/mount $ROOTFS /sysroot -o rw
else
echo "WARNING : THERE IS NO ROOTFS."
exec /bin/sh
/bin/mount $MODULES /sysroot/usr/lib/modules
fi
-
cd /sysroot
mkdir -p ./initrd
-
/sbin/pivot_root . ./initrd
/bin/mount -M ./initrd/dev /dev
/bin/mount -M ./initrd/sys /sys
/bin/mount -M ./initrd/proc /proc
/bin/umount -l ./initrd
-/bin/rm -r ./initrd
+/bin/rm -rf ./initrd
+/bin/mount -o remount,ro .
INIT=/sbin/init
-
if [ $$ = 1 ]
then
- exec chroot . $INIT $@
+ exec chroot . $INIT $@
fi
exec /bin/sh