Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
【Solved】Replace pluggin configuration (control)
#1
solved 
Hello


During the boot on the USB key, it is possible to press the F5 key in order to check the quality of the plugging 

This works perfectly well for the "conf_replace" plugin.

This makes it possible to verify that the names indicated correspond to files.

Would it be possible to do the same for the other two plugging "conf_replace_legacy" and "conf_replace_uefi"?

Thank you
Reply
#2
Yes.
If your PC is in legacy BIOS mode, Ventoy parse "conf_replace" or "conf_replace_legacy" in ventoy.json.
If your PC is in UEFI mode, Ventoy parse "conf_replace" or "conf_replace_uefi" in ventoy.json.

"conf_replace" can not be used mixed with "conf_replace_legacy" or "conf_replace_uefi"
Reply
#3
Hello



Thank you for your answer saying that it is not possible to have the common option and the specific options LEGACY and EFI.



I therefore deleted the general option to keep only the two options LEGACY and EFI.



Now the control of the LEGACY option is well done but not that of the EFI option





I have two computers. One is old and can only boot in LEGACY



The other is recent and can boot either in LECAGY or in EFI. I chose the EFI mode.




As I thought that the key could be used to boot one or the other computer, I chose the LEGACY and EFI options because I do not put the same value for the computers.



It also seems some O.S. do not use the same legacy and efi boot file.

I want use the same usb key.





I'm not sure if I can write something like this to only have one control section.


conf_replace": [
        {
            "iso": "/ISO/ubuntu-20.04.1-desktop-amd64.iso",
            "org": "/isolinux/txt.cfg",
            "new": "/Menus/Legacy-20.04.cfg",
            "org": "/boot/grub/grub.cfg",
            "new": "/Menus/ubuntu-20.04_grub.cfg"
        } 
                      ]  





The syntax is correct. But what about the execution?
Reply
#4
You should set as follows:
Code:
{
    conf_replace_legacy": [
        {
            "iso": "/ISO/ubuntu-20.04.1-desktop-amd64.iso",
            "org": "/isolinux/txt.cfg",
            "new": "/Menus/Legacy-20.04.cfg"
        }
    ],

    conf_replace_uefi": [
        {
            "iso": "/ISO/ubuntu-20.04.1-desktop-amd64.iso",
            "org": "/boot/grub/grub.cfg",
            "new": "/Menus/ubuntu-20.04_grub.cfg"
        }
    ] 
}
Reply
#5
Hello
Your answer proves that I misspoke.

This is exactly what I was doing at the very beginning before opening this request: I had three services conf_replace, conf_replace_legacy and conf_replace-efi

I opened the discussion by saying that only the first service was checked. You told me to delete it.
I then had two services of which only the first was controlled.
I made a proposal for consolidation into a single service

You are giving me two services. So that the second is still not controlled. I want it to be controlled in the same boot as the first one

I am attaching a photo because I do not know (yet) how to capture a ventoy screen ...

Contents of the file
{

    "conf_replace_legacy": [
        {
            "iso": "/ISO/ubuntu-20.04.1-desktop-amd64.iso",
            "org": "/isolinux/txt.cfg",
            "new": "/Menus/Legacy-20.04.cfg"
        }
    ],


    "conf_replace_uefi": [
        {
            "iso": "/ISO/ubuntu-20.04.1-desktop-amd64.iso",
            "org": "/boot/grub/grub.cfg",
            "new": "/Menus/ubuntu-20.04_grub.cfg"
        }
    ]

}
Reply
#6
OK. I make it clearly.

This is OK!
Code:
{
    "conf_replace": [
        xxx
    ]
}



This is OK!
Code:
{
    "conf_replace_legacy": [
        xxx
    ]
}


This is OK!
Code:
{
    "conf_replace_uefi": [
        xxx
    ]
}



This is OK!
Code:
{
    "conf_replace_legacy": [
        xxx
    ],
    "conf_replace_uefi": [
        xxx
    ]
}


This is NOT OK
Code:
{
    "conf_replace": [
        xxx
    ],
    "conf_replace_legacy": [
        xxx
    ]
}


This is NOT OK
Code:
{
    "conf_replace": [
        xxx
    ],
    "conf_replace_uefi": [
        xxx
    ]
}


This is NOT OK
Code:
{
    "conf_replace": [
        xxx
    ],
    "conf_replace_legacy": [
        xxx
    ],
    "conf_replace_uefi": [
        xxx
    ]
}


So your last config is OK.
You mean you have problem with conf_replace_uefi ?
Reply
#7
Hello
I finally understand:
When both options (conf_replace_legacy conf_replace_uefi) are present, only one is checked.

If the computer boots in LEGACY, the "conf_replace_legacy" option is checked and the other does not.

If the computer boots in UEFI, the "conf_replace_UEFI" option is checked and the other does not.

We couldn't have control of both options in the same boot.

so that was a bad question

Sorry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)