You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:What I missing here?
The text was updated successfully, but these errors were encountered: