mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-12 16:31:25 +00:00
47c7ab35c0
Before this commit the user was supposed to give the -e cmdline parameter to run the EFI conversion when necessary. But it was missing in the getopts parameter list, so it didn't work. Instead of fixing it, I opted to remove the -e parameter alltogether and automatically detect if the system is running on EFI or not. Because if the user should forget to give -e on an EFI system, it would result in an unbootable system without any bootmanager installed. Fixing this situation takes time and requires some sysadmin skills, so we should take steps to avoid this situation. Detecting if the system runs on EFI or not can reliably done by checking for /sys/firmware/efi/. |
||
---|---|---|
centos2rocky.sh | ||
migrate2rocky.sh | ||
README.md |
Rocky Tools
Various scripts and tools that we find useful, whether we use them or they are made for public consumption. For example, conversion scripts or otherwise.
[Centos2Rocky] -- Conversion Script
Running this script will convert an existing CentOS 8 system to Rocky Linux 8.
Usage
./centos2rocky.sh -h
├── -h # --> Displays this help
├── -r # --> Converts to Rocky
├── -V # --> Verifies switch
└── -R # --> Reinstalls all packages
[!! USE WITH CAUTION !!]
Debugging
The centos2rocky
script pipes everything shown on stdout
to /var/log/centos2rocky.log
.
If you run in to issues executing this script, please submit an issue here.
Make sure to include the output log, and remove any sensitive information. (if any)
Feel free to create a pull request if you think you've got the fix.