Add ConditionPathExists to pkg-db-recovery 21/307721/1
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 12 Mar 2024 12:17:55 +0000 (21:17 +0900)
committerilho kim <ilho159.kim@samsung.com>
Tue, 12 Mar 2024 12:23:55 +0000 (12:23 +0000)
During OTN, since the db schema has not been updated
schema verification may fail
Therefore there is need to prevents the execution of the pkg-db-recovery
service by checking file existing during OTN execution

Change-Id: Ie64d714ac63de5109c457d7551166f383d59721f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
tool/pkg-db-recovery.service

index d26e37e78176512d21b154a7c55d58eabb4e6a43..489b9a4a45897b0828601461be96e124229b8199 100644 (file)
@@ -4,6 +4,7 @@ DefaultDependencies=no
 Before=ac.service
 Requires=local-fs.target
 After=systemd-tmpfiles-setup.service local-fs.target
+ConditionPathExists=!/csa/system_rw_update_run
 
 [Service]
 Type=oneshot