ha/service-mgmt/sm-db/database
Luis Eduardo Bonatti e35510e1cc Fix /var are not updated according to the patch changes
Ostree doesn't manage the /var filesystem. Anything
installed there during initial filesystem setup, becomes
unpatchble. This commit changes the sm-patch.sql deploy path
to a place that ostree handles, /usr/share/sm/patches in this
case and symlinks it to /var/lib/sm/patches/sm-patch.sql.

Test Plan:
PASS: ISO install symlink created
PASS: sm-patch.sql installed to /usr/share/sm/patches
PASS: PATCH apply and changes applied to /var/lib/sm/
patches/sm-patch.sql on stx8

Closes-Bug: 2030890

Change-Id: I07047e5383e8ae9e57687cd1e852c2efc0eb755f
Signed-off-by: Luis Eduardo Bonatti <LuizEduardo.Bonatti@windriver.com>
2023-08-10 14:52:02 +00:00
..
Makefile Fix /var are not updated according to the patch changes 2023-08-10 14:52:02 +00:00
README Remove version from sm-db folder 2019-09-26 14:08:15 -05:00
create_sm_db.sql Removing sysinv-conductor dependency from rabbitmq 2023-06-02 16:37:36 -03:00
create_sm_hb_db.sql Remove version from sm-db folder 2019-09-26 14:08:15 -05:00
sm-patch.sql Remove version from sm-db folder 2019-09-26 14:08:15 -05:00

README

The SM database is generated by the corresponding SQL scripts:
create_sm_db.sql -> sm.db
create_sm_hb_db.sql -> sm.db.hb

Instructions:
1. Update the corresponding SQL script i.e, create_sm_db.sql or create_sm_hb_db.sql:
    Add proper SQL statement(s) (insert, update, delete) to the sql file.