update/cgcs-patch/bin
Don Penney 62a66370ca Add protection against duplicate RPMs
If a cold reboot occurs in the middle of patch installation, the
system can be left in a state where the patch-agent is unable to
perform its operations properly. The RPM database can be left with
duplicate RPMs due to the incomplete transaction, which can in turn
lead to DNF update installation issues.

This update adds detection of duplicate RPMs to the patch-agent to
avoid attempting installation until the system is recovered.

Additionally, protection is added to the sw-patch init to treat
multiple reboot patch installations as an error, to avoid boot loops.

Closes-Bug: 1904928
Change-Id: Ia06a6f669c45398d7956f2ac2caa76c447bc1b16
Signed-off-by: Don Penney <don.penney@windriver.com>
2020-11-25 14:47:47 -05: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 cgcs-patch: Add LSB headers to initscripts 2019-06-20 07:40:46 -07: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 Add patch API to determine if patches are available 2019-11-05 14:28:47 -06:00
sw-patch.service De-branding in starlingx/update: TIS -> StarlingX 2020-05-05 09:36:58 +02:00
upgrade-start-pkg-extract Update upgrade-start-pkg-extract to use dnf package 2020-03-13 16:57:13 -04:00