* Add OpenELA lookaside
* Add glob pattern for OpenELA http and git remotes
* Add another blank entry to branches array to maintain parity with other arrays
* 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.
* Create migrate2rocky9 For migrating to Rocky Linux 9
* Simple 8 -> 9 swap to start off with.
* Update settings for Rocky Linux 9
* Don't attempt to exclude modules when we don't have any
If our exclude module list is empty don't attempt to disable the empty list.
* Add notes about the need to run `dnf update` before migrating from EL8.0.
* Add instructions to manually fix the repository URLs when migrating from
CentOS 8.0
* Wrap long lines from earlier commit.
* Add devel repo to list of repositories to migrate.
* Use baseurl from our CentOS vault mirror.
CentOS killed off all the CentOS 8 repos and moved them to vault. As a result
migrate2rocky was no longer working to migrate CentOS 8 installs. To fix this
we've mirrored the CentOS 8 vault and point migrate2rocky to that instead.
I've added the blurb to the top of the known issues, since it's something that needs to be addressed before any of the other issues I saw listed. Again, feel free to do what's necessary to make it viable.
Here's a potential start to a blurb about running the script in a tmux or screen session. Please feel free to change up, reword, scrap the whole thing and start afresh, etc.
* Quote to prevent splitting
* Remove dir_mount_map variable
* Define efi_disk and efi_partition as array
* Expanding an array without an index only gives the first element
* Ignore shellchecking /etc/os-release
* Expressions do not need to expand
* migrate2rocky: use $convert_info_dir consistently
We set convert_info_dir=/root/convert. Use it consistently.
* migrate2rocky: avoid mkdir error with -rV options
Both -r and -V call `generate_rpm_info()` which run `mkdir` to create
the convert directory. The second call results in a warning:
mkdir: cannot create directory ‘/root/convert’: File exists
Use `mkdir -p` to avoid the spurious warning when the convert directory
exists.
* migrate2rocky: fix listing of rpm info files
When the conversion completes, the script prints:
You may review the following files:
However, there are no files displayed because the find pattern does not
match what `generate_rpm_info()` writes. It looks for '*-rpms-*' while
the files are named '*-rpm-list-*' instead.
Fix the file pattern used. While here, replace the use of `find` with a
simpler `printf` to achieve the same result.
* fix migrate2rocky script for aarch64 systems by using correct suffix for grub2-efi* and shim* packages
* wrap value passed to -l option of efibootmgr command in quotes
rsync in path has been modified to become a rsync_run function instead.
It will check to see if rsync exists in $PATH, including a fallback
path via the builtin bash "command", and exit accordingly.
We shouldn't be setting EFI boot to grubx64.efi, but rather shimx64.efi instead.
This commit also makes sure that both grub2-x64 and shim-x64 are properly
installed in an EFI boot system.
The mirrorlist URLs rely on variable replacements from CentOS Stream that are
not valid once we have switched to Rocky Linux. To fix this we change to the
baseurl instead and fix it up to not rely on those variables that have changed.