ventoy / Ventoy

A new bootable USB solution.
https://www.ventoy.net
GNU General Public License v3.0
60.28k stars 3.94k forks source link

[issue]: Boot Conf Replace Plugin don't use conf_replace if conf_replace_legacy is used for another image #2856

Open darkrem66 opened 1 month ago

darkrem66 commented 1 month ago

Official FAQ

Ventoy Version

1.0.98

What about latest release

Yes. I have tried the latest release, but the bug still exist.

Try alternative boot mode

No. I didn't try these alternative boot modes.

BIOS Mode

Legacy BIOS Mode

Partition Style

MBR

Disk Capacity

16GB

Disk Manufacturer

No response

Image file checksum (if applicable)

None

Image file download link (if applicable)

No response

What happened?

I have created a ventoy key for launching Clonezilla and Ubuntu MATE. I want to use the Boot Conf Replace plugin to replace grub and isolinux files in the images for adding french locale and keyboard.

This is my the part of my ventoy.json for the plugin: { "conf_replace":[ { "iso": "/ventoy/systems/ubuntu-mate/ubuntu-mate-22.04-desktop-amd64.iso", "org": "/boot/grub/grub.cfg", "new": "/ventoy/systems/ubuntu-mate/grub-fr.cfg" }, { "iso": "/ventoy/systems/ubuntu-mate/ubuntu-mate-22.04-desktop-amd64.iso", "org": "/boot/grub/loopback.cfg", "new": "/ventoy/systems/ubuntu-mate/loopback-fr.cfg" } ], "conf_replace_legacy":[ { "iso": "/ventoy/systems/clonezilla/clonezilla-live-20240408-noble-amd64.iso", "org": "/syslinux/isolinux.cfg", "new": "/ventoy/systems/clonezilla/isolinux-fr.cfg" } ], "conf_replace_uefi":[ { "iso": "/ventoy/systems/clonezilla/clonezilla-live-20240408-noble-amd64.iso", "org": "/boot/grub/grub.cfg", "new": "/ventoy/systems/clonezilla/grub-fr.cfg" } ] }

For Clonezilla, i use conf_replace_legacy and conf_replace_uefi because, the image use differents bootloaders in both mode. For Ubuntu MATE, i use conf_replace, because it use grub for legacy and uefi.

With this, only the Clonezilla ISO configuration is changed. The Ubuntu MATE configuration file isn't changed.

It's a bug or I have made a mistake ? Do i understand the use of this plugin correctly ?

Thanks for helping me resolve this