You are not logged in.
Pages: 1
Whenever I run the command
grub-mkconfig -o /boot/grub/grub.cfgI get this error
Generating grub configuration file ...
Found theme: /boot/grub/themes/tela/theme.txt
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-fallback.img
Adding boot menu entry for UEFI Firmware Settings ...
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 138
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.Here is my /boot/grub/grub.cfg.new file
╰─ cat /boot/grub/grub.cfg.new
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="Arch Linux"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root b925b783-44b4-4cfc-af18-29f066abf71a
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1920x1080,auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root F8CE-36C8
insmod gfxmenu
loadfont ($root)/grub/themes/tela/dejavu_sans_12.pf2
loadfont ($root)/grub/themes/tela/dejavu_sans_14.pf2
loadfont ($root)/grub/themes/tela/dejavu_sans_16.pf2
loadfont ($root)/grub/themes/tela/dejavu_sans_24.pf2
loadfont ($root)/grub/themes/tela/dejavu_sans_32.pf2
loadfont ($root)/grub/themes/tela/dejavu_sans_48.pf2
loadfont ($root)/grub/themes/tela/terminus-12.pf2
loadfont ($root)/grub/themes/tela/terminus-14.pf2
loadfont ($root)/grub/themes/tela/terminus-16.pf2
loadfont ($root)/grub/themes/tela/terminus-18.pf2
insmod jpeg
insmod png
set theme=($root)/grub/themes/tela/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux_proxy ###
menuentry "Arch Linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b925b783-44b4-4cfc-af18-29f066abf71a' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root F8CE-36C8
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=b925b783-44b4-4cfc-af18-29f066abf71a rw rootfstype=ext4 loglevel=3 quiet
echo 'Loading initial ramdisk ...'
initrd /intel-ucode.img /initramfs-linux.img
}
### END /etc/grub.d/10_linux_proxy ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware_proxy ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
fi
fi
### END /etc/grub.d/30_uefi-firmware_proxy ###
### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/50_grub-customizer_menu_color_helper ###
### END /etc/grub.d/50_grub-customizer_menu_color_helper ###Offline
error: syntax error. error: Incorrect command. error: syntax error. Syntax error at line 138 Syntax errors are detected in generated GRUB config file. Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* files or please file a bug report with /boot/grub/grub.cfg.new file attached.### BEGIN /etc/grub.d/30_uefi-firmware_proxy ### if [ "$grub_platform" = "efi" ]; then fwsetup --is-supported if [ "$?" = 0 ]; then fi fi ### END /etc/grub.d/30_uefi-firmware_proxy ###
I don't know any of (Bash) scripting, but I think you're missing the then condition.
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
From where did that file originate?
archie:~$ pacman -F /etc/grub.d/30_uefi-firmware_proxy
1archie:~$Doesn't seem to be supplied by any official packages. A quick search suggests that grub-customizer is responsible for that nonsense, which wouldn't surprise me at. Does removing that package (or that file) help?
And yes, the second if clause is incomplete.
Jin, Jîyan, Azadî
Offline
Pages: 1