Ventoy Forums
【Solved】Issue with menu_alias and Multi-Mode Option - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy Plugin —— Ventoy 插件 (https://forums.ventoy.net/forumdisplay.php?fid=3)
+--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4)
+--- Thread: 【Solved】Issue with menu_alias and Multi-Mode Option (/showthread.php?tid=1615)



【Solved】Issue with menu_alias and Multi-Mode Option - Orochi - 03-10-2021

I created two sections in ventoy.json, menu_alias_uefi and menu_alias_legacy.
I separated legacy and uefi isos based on each section.
All isos show up in the menu, no matter what mode I am in.
How can I solve this?


RE: Issue with menu_alias and Multi-Mode Option - longpanda - 03-11-2021

Please give your ventoy.json and some photos.


RE: Issue with menu_alias and Multi-Mode Option - Orochi - 03-11-2021

I am not sure how to make uefi bootable isos only to be visible under uefi boot and legacy isos to show up only under legacy boot.

Pictures of Legacy and Uefi

Legacy

Uefi

Ventoy.json


RE: Issue with menu_alias and Multi-Mode Option - longpanda - 03-12-2021

Code:
{
    "control_legacy" : [
        { "VTOY_DEFAULT_SEARCH_ROOT": "/DIR_TEST_LEGACY" }
    ],
  
    "control_uefi" : [
        { "VTOY_DEFAULT_SEARCH_ROOT": "/DIR_TEST_UEFI" }
    ]  
}

For example:

Put ISO files that only for legacy BIOS/UEFI  mode in the directory DIR_TEST_LEGACY/DIR_TEST_UEFI

https://www.ventoy.net/en/plugin_control.html


RE: Issue with menu_alias and Multi-Mode Option - Orochi - 03-12-2021

Thanks for the suggestion.
What about isos that can boot in both uefi and legacy? 
Will I need to have two copies of the same iso in both folders?

Maybe a plugin or a control option that will not display isos if they are listed under menu_alias?


RE: Issue with menu_alias and Multi-Mode Option - longpanda - 03-13-2021

Yes, You need two copy.

Or, you can use image_list plugin.  https://www.ventoy.net/en/plugin_imagelist.html

Code:
{
    "image_list_legacy": [
        "/ISO/Legacy1.iso",
        "/ISO/Legacy2.iso",
        "/ISO/Legacy_UEFI.iso"
    ],
   
    "image_list_uefi": [
        "/ISO/Uefi1.iso",
        "/ISO/Uefi2.iso",
        "/ISO/Legacy_UEFI.iso"
    ]
}



RE: Issue with menu_alias and Multi-Mode Option - Orochi - 03-13-2021

Quote:Yes, You need two copy.


Not a very good solution.

Tried image_list plugin. Works well, however I still would like one folder, say /iso/Auto, where isos images can
be tested very fast without modifying ventoy.json each time and adding new path to image list.

Then I looked at image_blacklist. I thought with this plugin, ventoy will search and display all images not found in the
image_blacklist section as per documentation "Firstly, Ventoy will search as normal. And then remove the files in the blacklist from the search result."

This doesn't seem to work for me for some reason.
First of all, it seems to work in reverse. image_blacklist_uefi should contain legacy images and image_blacklist_legacy should contain uefi images.
Secondly, Ventoy doesn't display any images not found in the image_blacklist. 

Is this a bug or am I doing something wrong?


Code:
    "image_blacklist_uefi": [
    "/iso/grubfmx64.efi",
        "/iso/Utilities/bootituefi.iso",
    "/iso/Utilities/Memtest86pro.iso"
    ],
    
    "image_blacklist_legacy": [
        "/iso/grubfm.iso",
        "/iso/Utilities/bootitmbr.iso",
        "/iso/Utilities/HDDaRTs.iso",
    "/iso/Utilities/MTFD.iso"
    ]



RE: Issue with menu_alias and Multi-Mode Option - longpanda - 03-15-2021

It's a bug. I have fixed it, please use the CI release for test: https://github.com/ventoy/Ventoy/actions/runs/654376948


RE: Issue with menu_alias and Multi-Mode Option - Orochi - 03-16-2021

Thank you.

I can confirm that image_blacklist works as it should.