FS#43743 - [os-prober] grub-mkconfig fails to place /<kernel>.img in added system in multiboot

Attached to Project: Community Packages
Opened by Larry Johnson (keepitsimpleengineer) - Sunday, 08 February 2015, 20:00 GMT
Last edited by Toolybird (Toolybird) - Monday, 03 April 2023, 23:32 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
The grub.cfg file created by grub-mkconfig does not contain the kernel image file reference after the intel microcode image reference on linux system(s) in the initrd line for other than the base system on multiple system booting on i686.

May or may not be related to " FS#43461  - [os-prober] grub-mkconfig fails to place /intel-ucode.img in added system in multiboot." which make a similar error on amd64 systems.

System panic when attempting to boot from other than base system.

[root@KISE-007 ~]# cat /var/tmp/grub.cfg | grep initrd
initrd /boot/intel-ucode.img /boot/initramfs-linux-ck.img
initrd /boot/intel-ucode.img /boot/initramfs-linux-ck-fallback.img
initrd /boot/intel-ucode.img /boot/initramfs-linux-ck-fallback.img
initrd /boot/intel-ucode.img /boot/initramfs-linux.img
initrd /boot/intel-ucode.img /boot/initramfs-linux-fallback.img
initrd /boot/intel-ucode.img /boot/initramfs-linux-fallback.img
initrd /boot/intel-ucode.img
initrd /boot/intel-ucode.img
initrd /boot/intel-ucode.img
initrd /boot/intel-ucode.img
initrd /boot/intel-ucode.img
initrd /boot/intel-ucode.img
initrd /boot/intel-ucode.img
initrd /boot/intel-ucode.img
initrd /boot/intel-ucode.img

Additional info:
* package version(s)
[root@KISE-007 ~]# uname -a
Linux KISE-007 3.18.6-1-ck #1 SMP PREEMPT Fri Feb 6 16:03:47 EST 2015 i686 GNU/Linux

[root@KISE-007 ~]# pacman -Qii grub
Name : grub
Version : 1:2.02.beta2-5
Description : GNU GRand Unified Bootloader (2)
Architecture : i686
URL : https://www.gnu.org/software/grub/
Licenses : GPL3
Groups : None
Provides : grub-common grub-bios grub-emu grub-efi-i386
Depends On : sh xz gettext device-mapper
Optional Deps : freetype2: For grub-mkfont usage
fuse: For grub-mount usage [installed]
dosfstools: For grub-mkrescue FAT FS and EFI support [installed]
efibootmgr: For grub-install EFI support
libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue
os-prober: To detect other OSes when generating grub.cfg in BIOS systems [installed]
mtools: For grub-mkrescue FAT FS support [installed]
Required By : None
Optional For : None
Conflicts With : grub-common grub-bios grub-emu grub-efi-i386 grub-legacy
Replaces : grub-common grub-bios grub-emu grub-efi-i386
Installed Size : 25.34 MiB
Packager : Ronald van Haren <ronald@archlinux.org>
Build Date : Mon 27 Oct 2014 01:20:32 PM PDT
Install Date : Tue 11 Nov 2014 07:54:35 AM PST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
Backup Files:
MODIFIED /boot/grub/grub.cfg
MODIFIED /etc/default/grub
UNMODIFIED /etc/grub.d/40_custom

[root@KISE-007 ~]# pacman -Qii os-prober
Name : os-prober
Version : 1.64-1
Description : Utility to detect other OSes on a set of drives
Architecture : i686
URL : http://joey.kitenet.net/code/os-prober/
Licenses : GPL3
Groups : None
Provides : None
Depends On : sh
Optional Deps : None
Required By : None
Optional For : grub
Conflicts With : None
Replaces : None
Installed Size : 49.00 KiB
Packager : Timothy Redaelli <timothy.redaelli@gmail.com>
Build Date : Tue 04 Nov 2014 07:53:32 AM PST
Install Date : Wed 05 Nov 2014 06:37:15 AM PST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Backup Files:
(none)
* config and/or log files etc.
/etc/default/grub attached[root@KISE-007 ~]# cat /proc/cpuinfo
processor : 0,1
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
stepping : 2
microcode : 0x218

Steps to reproduce:
[root@KISE-007 ~]# grub-mkconfig -o /var/tmp/grub.cfg
Generating grub configuration file ...
Found Intel Microcode image
Found linux image: /boot/vmlinuz-linux-ck
Found initrd image: /boot/initramfs-linux-ck.img
Found fallback initramfs image: /boot/initramfs-linux-ck-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 Manjaro Linux (0.8.12) on /dev/sda1
done
   grub (1.6 KiB)
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 03 April 2023, 23:32 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#43254 
Comment by Larry Johnson (keepitsimpleengineer) - Sunday, 08 February 2015, 20:09 GMT
/var/tmp/grub.cfg
Comment by ua4000 (ua4000) - Sunday, 22 March 2020, 17:59 GMT
I think duplicate of  FS#43254 
Comment by Ted Sims (catzero) - Wednesday, 23 March 2022, 20:27 GMT
Duplicate. This is a well known bug. It only effects systems with multiple linux installs, and only with ucode. It's a very annoying problem. Unfortunately, it is unlikely to be fixed upstream, so it needs a patch here. Other distros did this years ago, for example Suse and Manjaro. The usual solution is something like this:

https://bugzilla.opensuse.org/attachment.cgi?id=780376

Loading...