Change permission and ownership of dev nodes and udev related files
authorbs1770.kim <bs1770.kim@samsung.com>
Wed, 29 Aug 2012 00:21:43 +0000 (09:21 +0900)
committerbs1770.kim <bs1770.kim@samsung.com>
Wed, 29 Aug 2012 00:21:43 +0000 (09:21 +0900)
And move to mount /opt earlier. udevd has to be able to access /opt/etc/group file and so on

etc/rc.d/rc.sysinit

index 50c4634..388763b 100755 (executable)
@@ -21,26 +21,16 @@ mount -t devpts devpts /dev/pts
 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
@@ -64,6 +54,19 @@ if [ ! -e /opt/etc/.firstboot ]; then
        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_}]"