Add ConditionPathExists to pkg-db-recovery 20/307720/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:17:55 +0000 (21:17 +0900)
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 d26e37e..489b9a4 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