Mount /opt in initrd during normal boot 67/267967/1 accepted/tizen/6.5/unified/20211214.124620 submit/tizen_6.5/20211214.050625
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 7 Dec 2021 10:41:42 +0000 (11:41 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 14 Dec 2021 05:03:16 +0000 (05:03 +0000)
Change-Id: Id2b5a0582d9f7ed654e4d1c767ea968773f942c5
(cherry picked from commit 2d9d6056c6b1df5b2d08af9f7f9f622d4adf5743)

scripts/init.sh

index 21b3969..7c52b34 100755 (executable)
@@ -216,7 +216,13 @@ function process_datafs()
         /sbin/resize2fs -f $DATAFS
     fi
     /sbin/fsck -y $DATAFS
-    #/bin/mount $DATAFS $DATAFS_MNT
+
+    # In case of  RW Update we want to mount /opt as dm-bow device by
+    # data-checkpoint.service.
+    # During normal boot this partition should be mounted there
+    if [ "$DO_RW_UPDATE" = "0" ]; then
+        /bin/mount $DATAFS $DATAFS_MNT
+    fi
 }