Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#42738 - [grub] duplicate entry for each kernel in grub.cfg

Attached to Project: Arch Linux
Opened by patrick (potomac) - Tuesday, 11 November 2014, 06:22 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 11 November 2014, 07:35 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
with the last version of grub I notice that when we regenerate the grub.cfg files we have duplicate entry for each installed kernels,

for example I have 3 kernels : linux 3.17.2, linux-mainline 3.18rc4 and linux-lts, if I run "grub-mkconfig -o /boot/grub/grub.cfg" I have this output :

Found Intel Microcode image
Found linux image: /boot/vmlinuz-linux-mainline
Found initrd image: /boot/initramfs-linux-mainline.img
Found fallback initramfs image: /boot/initramfs-linux-mainline-fallback.img
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/initramfs-linux-lts.img
Found fallback initramfs image: /boot/initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
Found linux image: /boot/vmlinuz-linux-mainline
Found initrd image: /boot/initramfs-linux-mainline.img
Found fallback initramfs image: /boot/initramfs-linux-mainline-fallback.img
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/initramfs-linux-lts.img
Found fallback initramfs image: /boot/initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img

we can see twice the same line for each kernel, the grub.cfg will have also twice the same entries, it's not normal


Additional info:
* package version(s) 1:2.02.beta2-5
* config and/or log files etc.


Steps to reproduce:
- install grub 1:2.02.beta2-5
- regenerate grub.cfg
- you will notice twice the same line for each installed kernel in grub.cfg
This task depends upon

Closed by  Doug Newgard (Scimmia)
Tuesday, 11 November 2014, 07:35 GMT
Reason for closing:  Not a bug
Comment by patrick (potomac) - Tuesday, 11 November 2014, 06:47 GMT
sorry it was not a bug but a mistake in my configuration, I have created 7 days ago a custom /etc/grub.d/10_archlinux_intelucode file and I disabled ( chmod -x ) /etc/grub.d/10_archlinux,

but the upgrade of grub package has re-enabled the file /etc/grub.d/10_archlinux ( chmod +x ), that's why I have duplicate entries in grub.cfg,

the solution for me is to do again a "chmod -x" on the file /etc/grub.d/10_archlinux

Loading...