mount -t debugfs none /sys/kernel/debug
mknod /dev/null c 1 3
+mknod /dev/mmcblk0 b 179 0
+mknod /dev/mmcblk0p6 b 179 6
+
+# mount opt partition
+mount -t ext4 /dev/mmcblk0p6 /opt
echo -e "[${_G}udev start${C_}]"
/sbin/udevd --daemon
/sbin/udevadm trigger
-
-# check special booting mode.
-/bin/check-booting-mode.sh
-if [ $? -eq 0 ]; then
- echo -e "${_R}[ Special Booting mode ]${C_}"
- for i in /etc/rc.d/rc2.d/*; do
- echo -e "${_G}[${i} start]${C_}"
- $i start
- done
- exit 0
-fi
-
-# mount
-mount -t ext4 /dev/mmcblk0p6 /opt
-
if [ ! -e /opt/etc/.firstboot ]; then
umount /opt
# find rootfs partition for resizing and remounting
touch /opt/etc/.firstboot
sync
fi
+
+# check special booting mode.
+/bin/check-booting-mode.sh
+if [ $? -eq 0 ]; then
+ echo -e "${_R}[ Special Booting mode ]${C_}"
+ for i in /etc/rc.d/rc2.d/*; do
+ echo -e "${_G}[${i} start]${C_}"
+ $i start
+ done
+ exit 0
+fi
+
+# mount all partitions
mount -a
echo -e "[${_G}create base directory in /opt, /var${C_}]"