Bug 48102 - Broken grub config after delete UEFI_Firmware and Memtest86 entery
Summary: Broken grub config after delete UEFI_Firmware and Memtest86 entery
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: grub-customizer (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-20 18:47 MSK by Δημητριος
Modified: 2023-10-27 13:22 MSK (History)
3 users (show)

See Also:


Attachments
grub-customizer screenshot (121.98 KB, image/jpeg)
2023-10-21 16:29 MSK, Δημητριος
no flags Details
grub.cfg.new (6.26 KB, text/plain)
2023-10-23 12:31 MSK, Δημητριος
no flags Details
error (159.67 KB, image/png)
2023-10-27 13:21 MSK, Sergey Ivanov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Δημητριος 2023-10-20 18:47:07 MSK
after latest update  grub error appear

update-grub
Generating grub configuration file ...
Found theme: /boot/grub/themes/slinux/theme.txt
Found linux image: /boot/vmlinuz-std-def
Found initrd image: /boot/initrd-std-def.img
Found linux image: /boot/vmlinuz
Found initrd image: /boot/initrd.img
Found linux image: /boot/vmlinuz-5.10.198-std-def-alt1
Found initrd image: /boot/initrd-5.10.198-std-def-alt1.img
Found Windows 10 on /dev/sda1
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest image: /boot/memtest-6.20.bin
Found memtest image: /boot/memtest-6.20.efi
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 195
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.
Comment 1 Δημητριος 2023-10-21 10:14:02 MSK
picture from result of grub ...
https://disk.yandex.com/i/TRAtVa-cUsvv-w
Comment 2 Δημητριος 2023-10-21 16:29:53 MSK
Created attachment 14851 [details]
grub-customizer screenshot
Comment 3 Sergey Ivanov 2023-10-23 09:13:33 MSK
Hello. Can you please attach the file /boot/grub/grub.cfg.new to this bug
Comment 4 Δημητριος 2023-10-23 12:31:48 MSK
Created attachment 14856 [details]
grub.cfg.new
Comment 5 Sergey Ivanov 2023-10-27 13:21:33 MSK
I have reproduced this error
version:
grub-customizer-5.2.1-alt1
distro:
alt-kworkstation-10.2-install-x86_64.iso (updated to p10)

1. open grub-customizer
# grub-customizer
2. Remove UEFI Firmware Settings and/or Memtest86+ entery
3. Save changes
After that I get this error (screenshot error.png)

This error appears because of the creation of an incorrect file /boot/grub/grub.cfg.new
after update grub version from 2.06-alt7 to 2.06-alt16

grub-2.06-alt7:
### BEGIN /etc/grub.d/30_uefi-firmware_proxy ###

### END /etc/grub.d/30_uefi-firmware_proxy ###

grub-2.06-alt16:
### 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/39_memtest_proxy ###

if [ "$grub_platform" = "pc" ]; then

fi
if [ "$grub_platform" = "efi" ]; then

fi
### END /etc/grub.d/39_memtest_proxy ###

(Tested in Sisyphus and p10. The error is reproduced)
Comment 6 Sergey Ivanov 2023-10-27 13:21:50 MSK
Created attachment 14913 [details]
error