Fedora, испотрил grub.cfg. Backup'а нет.
Chroot from live ubuntu:
mount -rw /dev/mapper/fedora_localhost--live-root /mnt
mount -rw /dev/sda2 /mnt/boot
mount -rw /dev/sda1 /mnt/boot/efi
mount --rbind /dev /mnt/dev
mount --rbind /sys /mnt/sys
mount -t proc proc /mnt/proc
chroot /mnt /bin/bash
Configure new grub.cfg:
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Generating grub configuration file ...
grub2-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
File descriptor 3 (pipe:[83215]) leaked on vgs invocation. Parent PID 11002: grub2-probe
File descriptor 9 (pipe:[83245]) leaked on vgs invocation. Parent PID 11002: grub2-probe
File descriptor 3 (pipe:[83215]) leaked on vgs invocation. Parent PID 11002: grub2-probe
File descriptor 9 (pipe:[83245]) leaked on vgs invocation. Parent PID 11002: grub2-probe
Adding boot menu entry for EFI firmware configuration
done
В /mnt/boot имеется:
config-5.3.16-300.fc31.x86_64
initramfs-5.3.16-300.fc31.x86_64.img
System.map-5.3.16-300.fc31.x86_64
vmlinuz-5.3.16-300.fc31.x86_64
Вопрос: почему grub-mkconfig не добавил vmlinuz?
Ответ: Добавил, но не сообщил об этом.