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)
26
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-11-16 20:37 EST (History)
3 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
Comment 1 Fedora End Of Life 2017-11-16 14:03:23 EST
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

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