Created
November 22, 2021 15:52
-
-
Save 16pxdesign/dab193db02a104fa1d79d59c524df026 to your computer and use it in GitHub Desktop.
Ventoy auto search images on all hard drives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"control": [ | |
{ "VTOY_MENU_TIMEOUT": "60" }, | |
{ "VTOY_DEFAULT_IMAGE": "F6>My boot menu" } | |
], | |
"theme": { | |
"display_mode": "CLI" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insmod regexp | |
for pth in (*)/*vhdx; do | |
regexp --set=img_path '^\(.*\)\/(.*$)' "$pth" | |
menuentry "$img_path" "$pth" { | |
echo "$2" | |
vhdboot_common_func "$2" | |
} | |
done | |
for pth in (*)/*vtoy; do | |
regexp --set=img_path '^\(.*\)\/(.*$)' "$pth" | |
menuentry "$img_path" "$pth" { | |
echo "$2" | |
vtoyboot_common_func "$2" | |
} | |
done | |
menuentry '<-- Return to previous menu [Esc]' --class=vtoyret VTOY_RET { | |
echo 'Return ...' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment