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 00:46:11 +12:00
parent c6e0d05a4b
commit 2b8ba9f822
1 changed files with 2 additions and 1 deletions

View File

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