centos-to8-upgrade
centos-to8-upgrade copied to clipboard
any idea why this happens?
I have tried running this on a few centos 7 vm's and they look like they are going to install a bunch of packages but then get down to this point...
---> Package redhat-rpm-config.noarch 0:116-1.el8.0.1 will be installed Error: Invalid version flag: if [Tue Oct 1 22:23:58 UTC 2019] [info] finished CentOS-8 setup in /to8 [Tue Oct 1 22:23:58 UTC 2019] [info] beginning to sync /to8 to / sending incremental file list (new) backup_dir is /to8/to8_backup_2019-10-01
f+++++++++ to8.log 395,380 100% 19.21MB/s 0:00:00 (xfr#1, ir-chk=1010/1011) .d........x etc/
and basically no rpm's are installed and it thinks it's done..
Never seen that before, not sure why it happens. Can you please output a run with bash -x
?
@netnut404 bump
I got the same. A consecutive run doesn't have the same error, and the OS appears to be upgraded, but there's something about terminal not working properly, and some python packages being botched.
It's probably better to set -xeu -o pipefail
in the script itself.
Great suggestion, I’ll add this.
Any update?
Haven’t had a chance to test these in depth yet. Due to the nature of the process; sometimes a failure is OK. I suspect I need to add a flag to continue on despite failures.