Commit Graph

199 Commits

Author SHA1 Message Date
Louis Abel
69de45d490
Merge pull request #18 from pajamian/main
Various fixes based on feedback
2021-05-29 18:55:04 -07:00
629abc3134 Merge branch 'rocky-linux:main' into main 2021-05-29 21:24:25 +12:00
40dc4b53b1 Change log file name to migrate2rocky.log
It was left as centos2rocky.log from the old script.
2021-05-29 21:22:01 +12:00
b2d0c000d4 Turn off colors
This is for two reaons:

1.  There have been a number of complaints about the color blue.  For now I
can't get reasonable agreement on which color to make informative messages and
it will differ depending on what the background color is of a person's terminal.

2.  Currently the log is generated simply by splitting stdout and stderr.  That
means that color codes go to the log, which is less than ideal.  We need
separate logging routines that don't send the color codes but for now turning
off color will suffice.

This has been accomplished simply by commenting out the tput assignments at the
beginning of the script.  It is likely that osme form of color support will go
back in at some point so we'll keep the old code around for now.
2021-05-29 21:17:10 +12:00
800cf77a38 Add support for EFI
You can now pass the -e switch to update EFI boot settings at the end of the
migration.
2021-05-29 18:33:57 +12:00
7aa8c84ce2 Add dnf version check
EL 8.0 had a dnf that was not compatible with this script (output changed
causing parsing errors).  Make sure that e ahve a recent enough dnf for this
script to run properly and recommend updating otherwise.
2021-05-29 14:17:06 +12:00
Louis Abel
c83b38f784
Merge pull request #17 from pajamian/main
Import migrate2rocky.sh
2021-05-26 12:17:07 -07:00
3941878e51 Get rid of placeholder code for features we likely will never implment. 2021-05-19 00:05:01 +12:00
4dc791a7cc Don't migrate problematic modules.
Exclude known problematic modules from migration.
2021-05-18 23:43:58 +12:00
e01ac3ebee Springdale fixes
- Remove devel repo (can be put back when it becomes a thing with rocky).
- Fix filtering of header lines when parsing module list.
2021-05-16 14:05:42 +12:00
6534aaa584 Various additional RHEL fixes.
Additional RHEL fixes:
- Don't remove subscription-manager because baseos is subscription managed.
- Disable any remaining subscription managed repos that are replaced by
  RockyLinux repos.
- Hide digest messages from rpm.
2021-05-14 15:18:43 +12:00
17d50090fd Remove stray debugging line 2021-05-14 02:33:59 +12:00
1c25367f8b Various RHEL fixes
Various fixes to allow RHEL conversions to work:
- adding additional commands to bin_check
- Fixed awk command to parse out the gpgkey for a repo.
- provides_pkg() which returns a package name for a given provides.
- allow additional packages to be removed without replacing them with rocky
  equivalents.
- Don't bother checkign the exit status of dnf shell, it doesn't return a valid
  fail status anyways.
- Instead check to make sure that the appropriate packages have been removed and
  installed.  If not attempt to fix with rpm.
2021-05-14 02:26:20 +12:00
49fa13494e Account for no modules.
It is possible that we may get a system with no modules enabled.  Test and
account for this by skipping the enable modules step if necessary.
2021-05-12 13:44:41 +12:00
fdadcac23d os-release should be run in a subshell.
os-release should be run in a subshell to avoid the settings corrupting the main
script.
2021-05-12 11:11:36 +12:00
7f08a2b696 Import migrate2rocky.sh
This script, based on centos2rocky.sh is designed to be able to migrate to Rocky
Linux from any EL8 distribution.
2021-05-12 10:55:56 +12:00
nazunalika
d975bbe41a
remove unneeded option 2021-05-07 17:16:32 -07:00
Louis Abel
4c2a01eb86
Merge pull request #14 from pajamian/main
Various improvements
2021-05-07 17:14:25 -07:00
dae927baeb Add missing format string to printf. 2021-05-07 18:06:22 +12:00
64dbbde473 Use type builtin to check for the existence of the curl command.
There is no need to actually execute curl in order to check that it exists on
the system, the type builtin can tell us without having to fork the command.
2021-05-07 16:41:51 +12:00
d643676189 Remove wget Requirement
We currently require both wget and curl when curl is sufficient to do all of our
downloads.  curl is also required by rpm which is part of a minimal or core
install, so it should already be on every system that will run this script.
2021-05-07 16:34:42 +12:00
029f172fe3 Use exec to redirect output to log instead of subshell
Avoid forking a subshell by using exec to redirect output to log file.
Additional logging improvements are: Set filename at the top of script once
instead of hard-coding it throughout the script.  Log both stdout and stderr.
2021-05-07 16:22:45 +12:00
ce79f250ce Use printf instead of echo
Use printf instead of echo -e and echo for various different reasons.  See
https://wiki.bash-hackers.org/commands/builtin/echo#portability_considerations

Also interpolation of escape sequences is no longer necessary since they are
output from tput now (see previous commit).
2021-05-07 08:07:26 +12:00
Louis Abel
05b65828ff
Merge pull request #13 from pajamian/main
Use tput for colors.
2021-05-06 12:25:29 -07:00
Louis Abel
d49e7a4f43
Merge pull request #12 from dz00te/main
add multi-arch fix
2021-05-06 12:23:57 -07:00
cb92952867 Use tput for colors.
Color codes may vary from one terminal to another.  Use tput to always get the
right codes for the terminal in use.
2021-05-07 07:02:40 +12:00
dz00te
2eba3ded44 add upgrade grub on efi 2021-05-06 19:30:49 +02:00
dz00te
246a685a64 add multi-arch fix 2021-05-06 13:03:07 +02:00
Louis Abel
5e22c910a5
Merge pull request #9 from carterpeel/main
Added colors & redid readme.md
2021-05-04 12:26:40 -07:00
77f7ec6043 Added color to the script 2021-05-04 00:18:33 -04:00
58b23970a5 Touched up readme 2021-05-03 22:36:49 -04:00
a515cf6692 Touched up readme 2021-05-03 22:35:41 -04:00
99851955bb Merge branch 'main' of https://github.com/carterpeel/rocky-tools into main 2021-05-03 22:34:24 -04:00
ff225d733b Touched up README & fixed all bracket syntax in centos2rocky.sh 2021-05-03 22:33:47 -04:00
Louis Abel
00a3f2864d
Merge pull request #8 from carterpeel/main
Added logging facility & non-builtin package sanity checks
2021-05-03 16:02:01 -07:00
Carter Peel
4e106093d3
Changed shebang to "#!/usr/bin/env bash" 2021-05-03 17:03:52 -04:00
Carter Peel
626cef11ab Added log output and Wget/Curl sanity checks 2021-05-03 16:47:10 -04:00
4f36ce43a5 Added logging facility 2021-05-03 14:26:13 -04:00
nazunalika
32a574c7f7
add -L to mitigate issues 2021-05-02 10:47:22 -07:00
nazunalika
bd1c8321df
ignore shellcheck globbing 2021-05-02 10:30:19 -07:00
nazunalika
78df5a0131
english locale only for runtime 2021-05-02 09:50:33 -07:00
nazunalika
70b4e534b8
comments 2021-05-02 05:15:39 -07:00
nazunalika
efe8bb512e
fix variable for curl 2021-05-02 05:05:41 -07:00
nazunalika
58de053cbc
Attempt Fixes
* Attempt to consolidate URL's
* Attempt to find correct release versions for consistency to minor
  release that is supported - This also allows to remove minor version
  and just use major version.
* Pull RPM's instead of trying to install directly from the URL
2021-05-01 18:06:53 -07:00
nazunalika
2aeea50186
gpg 2021-05-01 14:30:35 -07:00
nazunalika
4991811242
fix release ID 2021-04-30 14:42:43 -07:00
nazunalika
7d18ba50d6
centos linux repos 2021-04-30 09:39:30 -07:00
nazunalika
f5f9ac2761
fix readme 2021-04-25 10:10:34 -07:00
nazunalika
4738f10cfc
init 2021-04-25 10:08:19 -07:00