Posts: 40
Threads: 15
Joined: Jun 2020
Reputation:
0
11-21-2020, 05:49 PM
(This post was last modified: 11-25-2020, 12:16 PM by longpanda.)
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
Posts: 1,357
Threads: 85
Joined: Apr 2020
Reputation:
132
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"
Posts: 40
Threads: 15
Joined: Jun 2020
Reputation:
0
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?
Posts: 40
Threads: 15
Joined: Jun 2020
Reputation:
0
11-22-2020, 06:14 PM
(This post was last modified: 11-22-2020, 06:28 PM by geole.)
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"
}
]
}
Posts: 40
Threads: 15
Joined: Jun 2020
Reputation:
0
11-23-2020, 08:45 AM
(This post was last modified: 11-23-2020, 09:18 AM by geole.)
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