Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
daiaji opened this issue Jan 7, 2023 · 0 comments
Open

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

daiaji opened this issue Jan 7, 2023 · 0 comments

Comments

@daiaji
Copy link

daiaji commented Jan 7, 2023

基本上我希望使用通配符来匹配镜像。
现在我更新镜像总是要去改菜单。
但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的路径才能启动。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant