![`grub2-mkconfig`:跳过特定设备来定位内核](https://linux22.com/image/222990/%60grub2-mkconfig%60%EF%BC%9A%E8%B7%B3%E8%BF%87%E7%89%B9%E5%AE%9A%E8%AE%BE%E5%A4%87%E6%9D%A5%E5%AE%9A%E4%BD%8D%E5%86%85%E6%A0%B8.png)
我更新了grub如下:
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
File descriptor 3 (pipe:[240340]) leaked on vgs invocation. Parent PID 45665: grub2-probe
File descriptor 9 (pipe:[208755]) leaked on vgs invocation. Parent PID 45665: grub2-probe
File descriptor 3 (pipe:[240340]) leaked on vgs invocation. Parent PID 45665: grub2-probe
File descriptor 9 (pipe:[208755]) leaked on vgs invocation. Parent PID 45665: grub2-probe
File descriptor 3 (pipe:[240340]) leaked on vgs invocation. Parent PID 45718: grub2-probe
File descriptor 9 (pipe:[208755]) leaked on vgs invocation. Parent PID 45718: grub2-probe
File descriptor 3 (pipe:[240340]) leaked on vgs invocation. Parent PID 45718: grub2-probe
File descriptor 9 (pipe:[208755]) leaked on vgs invocation. Parent PID 45718: grub2-probe
Found Ubuntu 22.10 (22.10) on /dev/mapper/vgubuntu-Data
Found Ubuntu 23.04 (23.04) on /dev/mapper/vgubuntu-UbuntuRoot
Adding boot menu entry for UEFI Firmware Settings ...
done
- 它发现
Ubuntu 22.10 (22.10) on /dev/mapper/vgubuntu-Data
,我如何指示避免在特定设备中查找内核和操作系统/dev/mapper/vgubuntu-Data
?