StarlingX build source tree root
Go to file
Leonardo Fagundes Luz Serrano 3e7d239e2b patch-iso-debian: Use ostree repo from deploy dir
This commit reverts a change made in [1].

The input ostree repo should be the one in DEPLOY_DIR,
not the one in the Input ISO.

This is because the script that generates patches has a
"reuse initramfs" feature, which modifies the ostree commit before creating the patch and saves this change on DEPLOY_DIR as well [2],
but not in the "raw" ISO (the one created by "build-image --keep").

The requirement for the DEPLOY_DIR env variable
has been re-introduced.

Note that, instead of pulling just the latest ostree commit,
all commits are pulled and then the old ones (all except the latest)
are deleted from the repo. By doing this, their respective
"tombstone" files are created, which are internal ostree flags
stating that those commits are missing *intentionally*.
Without them, some ostree operations throw errors
for the missing commits.

Ref:
[1] https://review.opendev.org/c/starlingx/root/+/923771
[2] d963ae7f51/sw-patch/cgcs-patch/cgcs_make_patch/make_patch.py (L794-L804)

Test Plan:
pass - create pre-patched ISO by running script in LAT container
pass - install pre-patched ISO
pass - "sw-patch query" shows previous patches
pass - output ostree repo has tombstones for deleted ostree commits

Story: 2011098
Task: 51227

Change-Id: If2ed17220484d6900976d6413983791c50f53516
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
2024-10-25 20:30:59 +00:00
build-tools patch-iso-debian: Use ostree repo from deploy dir 2024-10-25 20:30:59 +00:00
stx Update .gitignore 2024-09-09 10:01:38 -04:00
.gitignore Remove CentOS/OpenSUSE build support 2024-08-06 13:43:50 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:37 +00:00
.zuul.yaml Fix github mirroring for this repo 2023-04-28 12:38:49 -04:00
LICENSE StarlingX open source release updates 2018-06-01 07:45:23 -07:00
test-requirements.txt Update tests to new default 2018-06-08 20:09:47 -05:00
tox.ini Update tox.ini to work with tox 4 2022-12-26 21:12:47 +00:00