my9823 发表于 2024-2-18 20:37
曲线救国,你在用grub-mkimage生成img或者efi是有个-c参数,内置配置文件,你可以内置文件中查找指定文件啊 ...
my9823 发表于 2024-2-18 20:42
例如:
search --set=root /a/b/uefi.cfg
configfile /a/b/uefi.cfg
2010happly 发表于 2025-4-25 21:28
按二楼方法试了一下,虽然可以改了默认的grub.cfg的名字,但是菜单项都无法执行,按c进入命令行,输入help ...
wintoflash 发表于 2025-4-25 21:48
configfile /boot/grub2/bios.cfg
改为
normal /boot/grub2/bios.cfg
2010happly 发表于 2025-4-26 08:21
果然可以了!
search --set=root /boot/grub2/bios.cfg这一行也不要了。configfile也不要了。
...
wintoflash 发表于 2025-4-26 08:54
你在grub-mkimage命令行加载的模块是search_fs_file,对应的命令应该是search.file
2010happly 发表于 2025-4-26 10:37
受教了受教了。我应该写作:
search.file /boot/grub2/bios.cfg root
或者如果在grub-mkimage命令行中 ...
wintoflash 发表于 2025-4-26 10:40
--set=root
欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) | Powered by Discuz! X3.3 |