Hi after an update my tumbleweed install has two seperate openSUSE Tumbleweed entries including the submenus.
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
did not work what should i do now?
Hi after an update my tumbleweed install has two seperate openSUSE Tumbleweed entries including the submenus.
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
did not work what should i do now?
What do you mean with “did not work”?
It did not fix the problem, or did it fail to recreate the menu and aborted with an error message?
Anyway, please post a directory listing of /etc/grub.d/:
ls /etc/grub.d/
This contains scripts that generate the menu.
I suspect they are duplicated on your system, which causes duplicate entries (because the same scripts are run twice).
recreating the grubmenu did not fix the problem but it did finish without any errors.
00_header00_tuned10_linux10_linux.rpmorig20_linux_xen20_linux_xen.rpmorig20_memtest86+30_os-prober40_custom41_custom80_suse_btrfs_snapshot90_persistent95_textmode README
Does this have anything to do with a kernel update that happened recently ?
[QUOTE=j_koreth;2789263]
00_header00_tuned10_linux10_linux.rpmorig20_linux_xen20_linux_xen.rpmorig20_memtest86+30_os-prober40_custom41_custom80_suse_btrfs_snapshot90_persistent95_textmode README
See?
They are indeed duplicated.
Remove those with .rpmorig and your problem should be fixed:
sudo rm /etc/grub.d/*.rpmorig
Does this have anything to do with a kernel update that happened recently ?
Indirectly, as the boot menu gets recreated when installing a kernel update.
The duplicates rather stem from a grub2 update though.
These are config files, rpm creates those .rpmorig files under certain circumstances if the files have been modified.
There is a bug report about this, a possible “solution” would be grub2-mkconfig ignoring .rpmorig files, but currently it doesn’t.
Do you have bug number?
a possible “solution” would be grub2-mkconfig ignoring .rpmorig files, but currently it doesn’t.
My intention is to move distributed scripts into /usr/lib and let scripts in /etc to override them. What I still do not understand - where these rpmorig come from. Someone changes distributed files.
I had to search, but here it is:
https://bugzilla.opensuse.org/show_bug.cgi?id=958078
This one is marked as fixed, but the reporter himself did that after he fixed his local problem…
Another one is here, closed as WONTFIX:
https://bugzilla.opensuse.org/show_bug.cgi?id=933924
Comment#3 in the latter one states:
Previously not-owned file X is going to be overwritten by an owned file,then X is moved to X.rpmorig.
So they apparently must have been not-owned by any package at some point in the past, on this system at least…
[quote="“wolfi323,post:4,topic:120499”]
Thank you for the help, I fixed it by deleting the duplicated files with the .rpmorig extension as you said and rebuilt the grub menu with
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
after