Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems converting Centos 8 to Rocky Linux #196

Open
ctello-lentillas-si opened this issue Mar 3, 2023 · 0 comments
Open

Problems converting Centos 8 to Rocky Linux #196

ctello-lentillas-si opened this issue Mar 3, 2023 · 0 comments

Comments

@ctello-lentillas-si
Copy link

ctello-lentillas-si commented Mar 3, 2023

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 type command 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 <[email protected]>.
[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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant