almalinux-deploy
almalinux-deploy copied to clipboard
Add "--allowerasing" to a downgrade "-d" option in almalinux-deploy.sh
Going from CentOS 8-Stream to AlmaLinux using just the "-d" is not enough based on my testing. I suggest adding the "--allowerasing" at least. Also, the failure notice given from a failed distro-sync attempt says to issue the command "dnf distro-sync -y" alone. This will break a system. Additional notice should be provided to also re-run the almalinux-deploy.sh. The pattern for this part of the issue looks like this:
- run almalinux-deploy.sh -d
- fails with command "Run dnf distro-sync -y'
- manually run "dnf distro-sync -y" = fail
- manually run "dnf distro-sync -y --allowerasing" = works
- reboot -> fail
I've done something like this:
- run almalinux-deploy.sh -d
- fails with command "Run dnf distro-sync -y'
- manually run "dnf distro-sync -y --nobest" = failed with package grub2-efi
- Noticed that in my instalation had a customized repo, so I renamed it to customrepo.old, and 'yum clean metadata' and 'yum check-update'
- 'yum remove grub2-efi'
- 'yum install grub2-efi' (now it installs with almalinux repo)
- run almalinux-deploy.sh -d (again)
- reboot -> works!
'# cat /etc/redhat-release' AlmaLinux release 8.6 (Sky Tiger) '# uname -r' 4.18.0-372.26.1.el8_6.x86_64
So, I tested again, but I get rid of the custom repo before, and the process completed suscessfuly, not need to manually run "dnf distro-sync" and the deploy script again.