At the very least, there’s obviously two entries in that directory for uefi-firmware (30 and 35). I’d look at the contents of those files and see what’s duplicated.
Looks like fwupd is in there twice as well.
I’d identify which have duplicate entries in then, and then maybe look to see which packages each is owned by to see if there’s maybe an abandoned package or some entries left behind after an update.
30_uefi-firmware and 35_uefi-firmware identical with content:
#! /bin/sh
set -e
# grub copyring and other comments
prefix="/usr"
exec_prefix="/usr"
datarootdir="/usr/share"
export TEXTDOMAIN=grub2
export TEXTDOMAINDIR="${datarootdir}/locale"
. "$pkgdatadir/grub-mkconfig_lib"
LABEL="UEFI Firmware Settings"
gettext_printf "Adding boot menu entry for UEFI Firmware Settings ...\n" >&2
cat << EOF
if [ "\$grub_platform" = "efi" ]; then
menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' {
fwsetup --is-supported
if [ "\$?" = 0 ]; then
fwsetup
else
echo "Your firmware doesn't support setup menu entry from a boot loader"
echo "Press any key to return ..."
read
fi
}
fi
EOF
The same goes to fwupd. 2 files with identical content. How to check which package owns them?
How to restore this backup
--------------------------
* make sure you have root permissions (`gksu nautilus` or `sudo -s` on command line) otherwise you won't be able to copy the files
* to fix an unbootable configuration, just copy:
* '/etc/grub.d/backup/boot_grub' to '/boot/grub2'
* to reset the whole configuration (if it cannot be fixed by using grub customizer), also copy these files:
* '/etc/grub.d/backup/etc_grub_d' to '/etc/grub.d'
* '/etc/grub.d/backup/default_grub' to '/etc/default/grub'
I think this is the most interesting one due to mentioning grub customizer.
The duplicates are already in your grub menu so deleting the files that make the duplicates will not get rid of them.
The easiest way to get rid of them is to delete the duplicate entries with Grub Customizer. Delete the duplicate files in /etc/grub.d/ before you save again from Grub Customizer.
That should produce a single entry for each option in the menu.
Thanks everyone.
I removed duplicates and re-created grub config. Duplicate entries are gone, and I don’t think they appear anymore, as they were created by Grub Customizer.