From 5dc16cf7183f626f0365aa5757fa77975c8f9593 Mon Sep 17 00:00:00 2001 From: "bs1770.kim" Date: Wed, 29 Aug 2012 09:21:43 +0900 Subject: [PATCH] Change permission and ownership of dev nodes and udev related files 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 | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/etc/rc.d/rc.sysinit b/etc/rc.d/rc.sysinit index 50c4634..388763b 100755 --- a/etc/rc.d/rc.sysinit +++ b/etc/rc.d/rc.sysinit @@ -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_}]" -- 2.7.4