init: fix not to use found modules partition as rootfs 79/121779/2 accepted/tizen/common/20170329.172245 accepted/tizen/ivi/20170329.222710 accepted/tizen/mobile/20170329.222519 accepted/tizen/tv/20170329.222643 accepted/tizen/unified/20170329.222732 accepted/tizen/wearable/20170329.222706 submit/tizen/20170329.041352
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 29 Mar 2017 03:37:03 +0000 (12:37 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 29 Mar 2017 03:41:39 +0000 (12:41 +0900)
If there is no file system volume label "modules" and it is only
partition label, then booting will be failed because it sets the
partition as rootfs. So this fixes not to use found partition as
rootfs.

Change-Id: Iec3e3d3a3c53fb8a5080c68956a9c4fb621db41b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
scripts/init.sh

index 6eebb26c64a7ed902a78f3affe7000834604bc6b..56c51e55dba90970826db83be1aadc96d6ba84fb 100755 (executable)
@@ -16,7 +16,7 @@ fi
 MODULES=`/sbin/blkid -L modules`
 if [ x$MODULES = "x" ]
 then
-    ROOTFS=`/sbin/blkid -t PARTLABEL=module -o device`
+    MODULES=`/sbin/blkid -t PARTLABEL=module -o device`
 fi
 
 DATAFS=`/sbin/blkid -L system-data`