mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-08-26 18:36:03 +00:00
Added --force flag to swupd repair command
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
This commit is contained in:
@@ -16,7 +16,7 @@ if [[ -z "${RUNNER+x}" ]]; then RUNNER="${CLRK8S_RUNNER:-crio}"; fi
|
||||
# update os version
|
||||
function upate_os_version() {
|
||||
if [[ -n "${CLR_VER}" ]]; then
|
||||
sudo swupd repair -m "${CLR_VER}" --picky
|
||||
sudo swupd repair -m "${CLR_VER}" --picky --force
|
||||
return
|
||||
fi
|
||||
sudo swupd update
|
||||
|
||||
Reference in New Issue
Block a user