Ostree doesn't manage the /var filesystem. Anything
installed there during initial filesystem setup becomes
unpatchable [1]. As a result, the kickstart install dir
/var/www/pages/feed/rel-${platform_release}/kickstart
is not updated according to patch changes.
This commit changes the platform-kickstarts install paths
to a place that ostree handles,
/usr/share/platform-kickstarts/rel-${platform_release}
in this case and symlinks it to
/var/www/pages/feed/rel-${platform_release}/kickstarts.
Test Plan:
1. PASS: ISO install and verify symlink created: /var/www/pages/feed/rel-${platform_release}/kickstarts -> /usr/share/platform-kickstarts/rel-${platform_release}
2. PASS: Verify that the centos/ dir, kickstart.cfg & miniboot.cfg
are installed to /usr/share/platform-kickstarts/ rel-${platform_release}
3. PASS: Verify PATCH apply, ensure that changes are applied to /var/www/pages/feed/rel-${platform_release}/kickstarts
4. PASS: Manually remove/re-install the platform-kickstarts package
and verify kickstarts dir and symlink
Reviewed: https:/ /review. opendev. org/c/starlingx /metal/ +/894224 /opendev. org/starlingx/ metal/commit/ 0366f8552d5ac97 84de9992b6ae989 58c9a40381
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 0366f8552d5ac97 84de9992b6ae989 58c9a40381
Author: Salman Rana <email address hidden>
Date: Thu Sep 7 16:11:29 2023 -0400
Fix kickstarts patching
Ostree doesn't manage the /var filesystem. Anything www/pages/ feed/rel- ${platform_ release} /kickstart
installed there during initial filesystem setup becomes
unpatchable [1]. As a result, the kickstart install dir
/var/
is not updated according to patch changes.
This commit changes the platform-kickstarts install paths share/platform- kickstarts/ rel-${platform_ release} www/pages/ feed/rel- ${platform_ release} /kickstarts.
to a place that ostree handles,
/usr/
in this case and symlinks it to
/var/
[1] https:/ /review. opendev. org/c/starlingx /ha/+/890918
Test Plan:
/ var/www/ pages/feed/ rel-${platform_ release} /kickstarts ->
/ usr/share/ platform- kickstarts/ rel-${platform_ release} platform- kickstarts/
rel- ${platform_ release}
/ var/www/ pages/feed/ rel-${platform_ release} /kickstarts
1. PASS: ISO install and verify symlink created:
2. PASS: Verify that the centos/ dir, kickstart.cfg & miniboot.cfg
are installed to /usr/share/
3. PASS: Verify PATCH apply, ensure that changes are applied to
4. PASS: Manually remove/re-install the platform-kickstarts package
and verify kickstarts dir and symlink
Closes-Bug: 2034753
Closes-Bug: 2035109
Change-Id: I307d28c086bb3d 9f0e4d6792db44e 55c99358a50
Signed-off-by: Salman Rana <email address hidden>