chenall/grub4dos

支持搜索文件后将路径赋值到变量吗?

Opened this issue · 0 comments

基本上我希望使用通配符来匹配镜像。
现在我更新镜像总是要去改菜单。
但find似乎不支持赋值到变量。
find支持通配符吗?

title Manjaro
set isofile=/Linux/manjaro-kde-22.0.0-unstable-230106-linux60.iso
set dri=free
find --set-root %isofile%
uuid () &; set UUID=%?%
set dev=/dev/disk/by-uuid/%UUID%
map %isofile% (0xff)
map --hook
kernel  (0xff)/boot/vmlinuz-x86_64  img_dev=%dev% img_loop=%isofile% driver=%dri% tz=utc lang=zh_CN keytable=us
initrd  (0xff)/boot/amd_ucode.img (0xff)/boot/intel_ucode.img (0xff)/boot/initramfs-x86_64.img

很多Linux镜像需要iso的路径才能启动。