Fix rootfs mount for metadata extraction
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 27 May 2022 15:15:33 +0000 (17:15 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 27 May 2022 15:15:33 +0000 (17:15 +0200)
Change-Id: I63e1203ba98fa1513bb3c3b731cb15f1210d8922

mk_delta/common/bin/mk_delta_full.sh

index c812b08..57eab97 100755 (executable)
@@ -47,7 +47,7 @@ fn_gen_metadata()
 
        local OLD_BUILD_STRING="0.0"
 
-       sudo mount -o loop ${ROOTFS_IMG} ${TMP_MNT_PNT}
+       sudo mount -o loop,ro ${ROOTFS_IMG} ${TMP_MNT_PNT}
        local NEW_BUILD_STRING=`cat ${TMP_MNT_PNT}/etc/info.ini | grep "Release=" | sed "s/Release=//" | sed "s/;$//"`
        local BINOUT="$(LC_ALL=C LANG=C file -b ${TMP_MNT_PNT}/bin/ls)"