Bug 1470771 - grub2-mkconfig creates duplicates of boot entries
grub2-mkconfig creates duplicates of boot entries
Status: NEW
Product: Fedora
Classification: Fedora
Component: grub2 (Show other bugs)
25
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Peter Jones
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-13 11:41 EDT by Lesovoy Anton
Modified: 2017-07-13 11:41 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Photo of GRUB with duplicate items (3.11 MB, image/jpeg)
2017-07-13 11:41 EDT, Lesovoy Anton
no flags Details

  None (edit)
Description Lesovoy Anton 2017-07-13 11:41:59 EDT
Created attachment 1297740 [details]
Photo of GRUB with duplicate items

Description of problem:
grub2-mkconfig generates config file with all entries listed twice.

Version-Release number of selected component (if applicable):
2.02-0.38.fc25

How reproducible:
I generated two grub configs: first for BIOS and other for UEFI. Because i didn't know which interface my computer is using after motherboard replacement/ Turns out it's legacy UEFI, which is equal to BIOS. Then i uninstalled the grub2-efi module and removed UEFI config file.


Steps to Reproduce:
1. Generate config for BIOS:
grub2-mkconfig -o /boot/grub2/grub.cfg

2. Generate config for UEFI:
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

3. Uninstall grub2-efi
sudo dnf uninstall grub2-efi

4. Remove UEFI config file
sudo rm /boot/efi/EFI/fedora/grub.cfg

Actual results:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Found linux image: /boot/vmlinuz-4.11.8-200.fc25.x86_64
Found initrd image: /boot/initramfs-4.11.8-200.fc25.x86_64.img
Found linux image: /boot/vmlinuz-4.11.6-201.fc25.x86_64
Found initrd image: /boot/initramfs-4.11.6-201.fc25.x86_64.img
Found linux image: /boot/vmlinuz-4.11.5-200.fc25.x86_64
Found initrd image: /boot/initramfs-4.11.5-200.fc25.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-2570e11340c7484fb7cf2928ad1f35d2
Found initrd image: /boot/initramfs-0-rescue-2570e11340c7484fb7cf2928ad1f35d2.img
Found linux image: /boot/vmlinuz-4.11.8-200.fc25.x86_64
Found initrd image: /boot/initramfs-4.11.8-200.fc25.x86_64.img
Found linux image: /boot/vmlinuz-4.11.6-201.fc25.x86_64
Found initrd image: /boot/initramfs-4.11.6-201.fc25.x86_64.img
Found linux image: /boot/vmlinuz-4.11.5-200.fc25.x86_64
Found initrd image: /boot/initramfs-4.11.5-200.fc25.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-2570e11340c7484fb7cf2928ad1f35d2
Found initrd image: /boot/initramfs-0-rescue-2570e11340c7484fb7cf2928ad1f35d2.img
done

Expected results:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Found linux image: /boot/vmlinuz-4.11.8-200.fc25.x86_64
Found initrd image: /boot/initramfs-4.11.8-200.fc25.x86_64.img
Found linux image: /boot/vmlinuz-4.11.6-201.fc25.x86_64
Found initrd image: /boot/initramfs-4.11.6-201.fc25.x86_64.img
Found linux image: /boot/vmlinuz-4.11.5-200.fc25.x86_64
Found initrd image: /boot/initramfs-4.11.5-200.fc25.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-2570e11340c7484fb7cf2928ad1f35d2
Found initrd image: /boot/initramfs-0-rescue-2570e11340c7484fb7cf2928ad1f35d2.img
done

Additional info:
None

Note You need to log in before you can comment on or make changes to this bug.