rocky-linux / rocky-tools

MIT License
393 stars 137 forks source link

Problems converting Centos 8 to Rocky Linux #196

Open ctello-lentillas-si opened 1 year ago

ctello-lentillas-si commented 1 year ago

I have a VM machine in GCP with Centos 8.

When I try to run the script (migrate2rocky.sh), I get the following error:

Commands not found: grub2-mkconfig efibootmgr. Possible bad PATH setting or corrupt installation.

I check if the commands are installed and they are. I also check the PATH and it is set correctly. But typecommand seems don't find these commands:

[root@XXYYZZ]#  cat /etc/redhat-release
CentOS Linux release 8.5.2111
[root@XXYYZZ]# whoami
root
[root@XXYYZZ]# sudo bash migrate2rocky.sh -r
migrate2rocky - Begin logging at Fri 03 Mar 2023 09:45:08 AM CET.

Commands not found: grub2-mkconfig efibootmgr.  Possible bad PATH setting or corrupt installation.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

 A log of this installation can be found at /var/log/migrate2rocky.log
[root@XXYYZZ]# sudo grub2-mkconfig --help
Usage: grub2-mkconfig [OPTION]
Generate a grub config file

  -o, --output=FILE       output generated config to FILE [default=stdout]
  --no-grubenv-update     do not update variables in the grubenv file
  -h, --help              print this message and exit
  -v, --version           print the version information and exit

Report bugs to <bug-grub@gnu.org>.
[root@XXYYZZ]# sudo efibootmgr
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0000,0001,0002
Boot0000* UiApp
Boot0001* UEFI Google PersistentDisk
Boot0002* Harddisk
Boot0003* CentOS Linux
[root@XXYYZZ]# sudo type efibootmgr
/bin/type: line 2: type: efibootmgr: not found
[root@XXYYZZ]# sudo type grub2-mkconfig
/bin/type: line 2: type: grub2-mkconfig: not found
[root@XXYYZZ]# echo $PATH
/root/.local/bin:/root/bin:/usr/bin

What I missing here?