Здравствуйте! Мне необходимо понять, как правильно настроить grub2 на Funtoo.
Есть два ядра, скомпилированных genkernel:
одно - рабочее Funtoo Linux genkernel - kernel-debian-sources-x86_64-4.14.12-2,
другое - нерабочее Funtoo Linux genkernel - kernel-genkernel-x86_64-4.15.12-gentoo.
И есть настройки /etc/boot.conf
# ls /boot
System.map-debian-sources-x86_64-4.14.12-2
System.map-genkernel-x86_64-4.15.12-gentoo
early_ucode.cpio
grub
initramfs-debian-sources-x86_64-4.14.12-2
initramfs-genkernel-x86_64-4.15.12-gentoo
kernel-debian-sources-x86_64-4.14.12-2
kernel-genkernel-x86_64-4.15.12-gentoo
lost+found
memtest86
# cat /etc/boot.conf
boot {
generate grub
default "Funtoo Linux genkrnel debian"
timeout 3
}
"Funtoo Linux" {
kernel bzImage[-v]
}
"Funtoo Linux genkernel debian" {
kernel kernel-debian-sources-x86_64[-v]
initrd initramfs-debian-sources-x86_64[-v]
params += real_root=auto rootfstype=auto
}
"memtest86+" {
type linux16
kernel /memtest86.bin
}
boot-update создет конфиг только с одной записью - Funtoo genkernel debian :
# boot-update
boot-update 1.8.2 /
Copyright 2009-2017 Funtoo Technologies
[use option "-l" for license info, "-h" for help]
* Generating config for grub...
DEFAULT > Funtoo Linux genkernel debian - kernel-debian-
sources-x86_64-4.14.12-2
* NOTE: Detected MBR boot. Configuring for Legacy MBR booting.
* WARN: Image for section memtest86+ not found - /memtest86.bin
* WARN: No boot/default match found - using first boot entry by
default.
* NOTE: Intel microcode will be loaded at boot-time.
* Completed successfully with warnings.
# cat /boot/grub/grub.cfg
set timeout=3
insmod part_msdos
insmod ext2
set root=(hostdisk//dev/sda,msdos1)
search --no-floppy --fs-uuid --set 96d5ade2-b906-499f-9b3f-361df0acc75d
if loadfont /grub/unifont.pf2; then
set gfxmode=text
insmod all_video
terminal_output gfxterm
fi
set menu_color_normal=cyan/blue
set menu_color_highlight=blue/cyan
menuentry "Funtoo Linux genkernel debian - kernel-debian-sources-x86_64-4.14.12-2" {
insmod part_msdos
insmod ext2
set root=(hostdisk//dev/sda,msdos1)
search --no-floppy --fs-uuid --set 96d5ade2-b906-499f-9b3f-361df0acc75d
linux /kernel-debian-sources-x86_64-4.14.12-2 rootfstype=auto real_root=/dev/sda3 rootfstype=ext4
initrd /early_ucode.cpio /initramfs-debian-sources-x86_64-4.14.12-2
set gfxpayload=keep
}
menuentry "memtest86+" {
}
set default=0
Подскажите, как добавить второе ядро в груб (не по умолчанию): Funtoo genkernel Gentoo-sources?