update/cgcs-patch/bin
David Sullivan 83f5487c27 Correct package selection during upgrade-start-pkg-extract
During upgrade-start we call upgrade-start-pkg-extract to extract the
kickstarts and pxeboot data from the N+1 load. This data is used to boot
controller-1 in duplex environments. As these packages can be patched we
need to select the latest version of the package.

Currently the dnf repoquery call returns every version of the rpm
queried. This results in the base version being used during the package
extraction. This commit updates the command to use --latest-limit=1.
The command is also updated to use --disablerepo=*. This will result in
the command being restricted to the specified N+1 repos. Without the
disablerepo option the N repo packages are included in the results.

This brings the call in line with the behavior of
utilities/utilities/platform-util/scripts/gen-bootloader-iso.sh

Testing:
AIO-DX upgrade with patched kickstart package

Closes-Bug: 1955410
Change-Id: Ia1cd778791b64133667327031305d0f1914aed2d
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
2021-12-20 10:56:36 -06:00
..
make_patch StarlingX open source release updates 2018-05-31 07:37:12 -07:00
modify_patch StarlingX open source release updates 2018-05-31 07:37:12 -07:00
patch-functions Change compute node to worker node personality 2018-12-13 13:05:05 -05:00
patch-tmpdirs.conf StarlingX open source release updates 2018-05-31 07:37:12 -07:00
patch_build StarlingX open source release updates 2018-05-31 07:37:12 -07:00
patch_check_goenabled.sh Resolve bashate and pep8 warnings 2018-08-08 19:36:58 -05:00
patching.conf StarlingX open source release updates 2018-05-31 07:37:12 -07:00
patching.logrotate StarlingX open source release updates 2018-05-31 07:37:12 -07:00
pmon-sw-patch-agent.conf StarlingX open source release updates 2018-05-31 07:37:12 -07:00
pmon-sw-patch-controller-daemon.conf StarlingX open source release updates 2018-05-31 07:37:12 -07:00
policy.json StarlingX open source release updates 2018-05-31 07:37:12 -07:00
query_patch StarlingX open source release updates 2018-05-31 07:37:12 -07:00
rpm-audit Update patching rpm-audit to handle both sha256 and md5 checksums 2018-06-27 13:54:58 -04:00
run-patch-scripts StarlingX open source release updates 2018-05-31 07:37:12 -07:00
setup_patch_repo Fix setup_patch_repo error string 2020-10-19 21:21:16 -04:00
sw-patch cgcs-patch: Fix shebang header to /usr/bin/python 2019-06-19 12:29:22 -07:00
sw-patch-agent cgcs-patch: Fix shebang header to /usr/bin/python 2019-06-19 12:29:22 -07:00
sw-patch-agent-init.sh Resolve bashate and pep8 warnings 2018-08-08 19:36:58 -05:00
sw-patch-agent-restart StarlingX open source release updates 2018-05-31 07:37:12 -07:00
sw-patch-agent.service De-branding in starlingx/update: TIS -> StarlingX 2020-05-05 09:36:58 +02:00
sw-patch-controller-daemon cgcs-patch: Fix shebang header to /usr/bin/python 2019-06-19 12:29:22 -07:00
sw-patch-controller-daemon-init.sh Resolve bashate and pep8 warnings 2018-08-08 19:36:58 -05:00
sw-patch-controller-daemon-restart StarlingX open source release updates 2018-05-31 07:37:12 -07:00
sw-patch-controller-daemon.service De-branding in starlingx/update: TIS -> StarlingX 2020-05-05 09:36:58 +02:00
sw-patch-controller-init.sh relocate /www to /var/www 2021-12-15 21:18:20 +00:00
sw-patch-controller.service De-branding in starlingx/update: TIS -> StarlingX 2020-05-05 09:36:58 +02:00
sw-patch-init.sh Add protection against duplicate RPMs 2020-11-25 14:47:47 -05:00
sw-patch.completion relocate /www to /var/www 2021-12-15 21:18:20 +00:00
sw-patch.service De-branding in starlingx/update: TIS -> StarlingX 2020-05-05 09:36:58 +02:00
upgrade-start-pkg-extract Correct package selection during upgrade-start-pkg-extract 2021-12-20 10:56:36 -06:00