rocky-tools icon indicating copy to clipboard operation
rocky-tools copied to clipboard

Feature-request: Allow usage of local mirrors in `migrate2rocky.sh`

Open jdeamicis opened this issue 3 years ago • 2 comments

With the release of RockyLinux 8.5, using migrate2rocky.sh on a CentOS 8.4 installation will automatically migrate it to a Rocky 8.5.

If one has access to local mirrors for different Rocky minor releases, one could edit the repos before the package_swaps phase in order to control the resulting minor release for the migration (by picking the right mirror for the desired minor release).

jdeamicis avatar Nov 19 '21 17:11 jdeamicis

It's actually easier than expected: one must just use the local mirrors in repo_urls for both rockybaseos and rockyappstream, instead of the default ones.

I wonder if it makes sense to make it a command line option for the users.

jdeamicis avatar Nov 19 '21 18:11 jdeamicis

please see https://github.com/rocky-linux/rocky-tools/pull/92 and my fork https://github.com/m41kc0d3/rocky-tools/tree/set-mirror-url

we used it internally for many migrations

m41kc0d3 avatar Nov 25 '21 13:11 m41kc0d3