halimg: Add hal-rpmdb-checker.service to check rpm version compatibility 95/258895/3
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 29 Apr 2021 03:14:16 +0000 (12:14 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 21 Jun 2021 08:58:39 +0000 (08:58 +0000)
commitb4593a4cf5265f2cdd34171f7196d9032f6a046f
tree2dcf93d8651eed2560f1fa26e39529c2841bfa7c
parentdbeef1465f25513301690eb3b2ee9c326ded62d7
halimg: Add hal-rpmdb-checker.service to check rpm version compatibility

For removing the h/w dependency from Tizen core image, decide to create
Tizen core image (core.img) and hal.img separately. It means that each
image is able to be built on different build time. So that in order to
guarnatee the compatibility between images, must need to check
the version compatiblity of rpm packages of hal backend packages in hal.img.

hal-rpmdb-checker.service will check the  the version compatiblity
between core.img and hal.img on booting time.

If there are no problem between images, hal-rpmdb-checker script
will create /opt/etc/hal/.hal-img-version.ini with hal.img build
information. Also, after writing the core.img, hal-rpmdb-checker
script will create /opt/etc/hal/.first-booting file to distinguish
whether booting is first or not.

Exmaple of /opt/etc/hal/.hal-img-version.ini
$cat /opt/etc/hal/.hal-img-version.ini
tizen-6.5-unified-gbm_20210525.030006;

Change-Id: I06c740d48478eae6671cec555e627e58e06ea119
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
packaging/hal-api-common.spec
packaging/hal-rpmdb-checker [new file with mode: 0755]
packaging/hal-rpmdb-checker.service [new file with mode: 0644]