Allowerasing (#181)

* Allow erasing during the distro-sync

This is mainly for Oracle Linux but it  will allow a lot more distro-syncs to be
successful instead of crapping out with the migration half done.
This commit is contained in:
Peter Ajamian 2022-07-16 10:41:37 +12:00 committed by GitHub
parent c6e0d05a4b
commit 482b7e500e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1100,7 +1100,8 @@ EOF
fi fi
infomsg $'\nSyncing packages\n\n' infomsg $'\nSyncing packages\n\n'
dnf -y distro-sync || exit_message "Error during distro-sync." dnf -y --allowerasing distro-sync ||
exit_message "Error during distro-sync."
# Disable Stream repos. # Disable Stream repos.
if (( ${#installed_sys_stream_repos_pkgs[@]} || if (( ${#installed_sys_stream_repos_pkgs[@]} ||