Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 61b8702

Browse files
CraigSterrettahsan518
authored andcommitted
Added --force flag to swupd repair command (#298)
Running setup_system.sh on a system setting the OS version to keep setup_system from upgrading the OS causes an error because a package has been removed. Need to add the --force flag to the sudo swupd repair -m "${CLR_VER}" --picky command Closes issue #297
1 parent 00c1d60 commit 61b8702

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clr-k8s-examples/setup_system.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [[ -z "${RUNNER+x}" ]]; then RUNNER="${CLRK8S_RUNNER:-crio}"; fi
1616
# update os version
1717
function upate_os_version() {
1818
if [[ -n "${CLR_VER}" ]]; then
19-
sudo swupd repair -m "${CLR_VER}" --picky
19+
sudo swupd repair -m "${CLR_VER}" --picky --force
2020
return
2121
fi
2222
sudo swupd update

0 commit comments

Comments
 (0)