Hi Guys, 1st off, I'm new to CentOS, but not new to computers.
I just installed CentOS 7.3 on my system and the Grub menu is not displaying the Window7 instance I have on a different drive. If I try to update the Grub2 config file by running the command:
Code:
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
I get the following error message:
Code:
/etc/default/grub: line 3: 7: command not found
Can you guys shed some light into what I'm missing?
I've verified that the Package os-prober-1.58-9.el7.x86_64 is already installed. if I
CAT /etc/default/grub, I get the following output:
Code:
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=Windows 7
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
I'm guessing it's referring to the "GRUB_DEFAULT=Windows 7"??? I'm not sure what it's looking for here or how to fix this? I've read different posts that indicate to not touch this file, and that the "grub2-mkconfig" command will make the changes... which brings me back right to where I started.
For the record, I haven't changed or modified anything at this point, and If this helps, the "
40_custom" file shows:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}
Uname = Linux LX-WkSt 3.10.0-514.16.1.el7.x86_64 #1
CentOS Linux release 7.3.1611 (Core)