Mount /opt in initrd during normal boot 84/267584/1 accepted/tizen/unified/20211215.125618 submit/tizen/20211214.050618 submit/tizen/20211215.060033
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 7 Dec 2021 10:41:42 +0000 (11:41 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 7 Dec 2021 10:44:01 +0000 (11:44 +0100)
Change-Id: Id2b5a0582d9f7ed654e4d1c767ea968773f942c5

scripts/init.sh

index 21b39694b0427da7a9ac6becdeb1f9e9ad35c93e..7c52b34efe26b40c444f85b82f309107be2e97de 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
 }