Ventoy icon indicating copy to clipboard operation
Ventoy copied to clipboard

[issue]: conf_replace: Can we have more than 2 files replaced please?

Open Moonbase59 opened this issue 8 months ago • 4 comments

Official FAQ

  • [x] I have checked the official FAQ.

Ventoy Version

1.1.05

What about latest release

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

Try alternative boot mode

Yes. I have tried them, but the bug still exist.

BIOS Mode

UEFI Mode

Partition Style

GPT

Disk Capacity

128GB

Disk Manufacturer

Samsung

Image file checksum (if applicable)

None

Image file download link (if applicable)

No response

What happened?

The docs state for conf_replace we can replace a maximum of 2 files.

Now I have finally succeeded in adding persistence to EndeavourOS 2025.03 (Mercury Neo), I find all is well using "Normal Mode" (using my replaced /boot/syslinux/archiso_sys-linux.cfg). Nevertheless, I'd like to also enable persistence for GRUB2 mode. Unfortunately, EndeavourOS spreads the 4 menu options into 4 separate files in /loader/entries/, so I'd have 5 files in total to replace. (And all that just to add one option cow_label=vtoycow… Sigh.)

Do you think you could allow a few more replacement files for situations like these?

And is it "files total" or "files per ISO"?

Moonbase59 avatar Apr 20 '25 16:04 Moonbase59

I also asked the EndeavourOS devs to include that feature: https://github.com/endeavouros-team/EndeavourOS-ISO/issues/74

Moonbase59 avatar Apr 20 '25 16:04 Moonbase59

The max number 2 is hardcoded but in VentoyProtocol.c VTOY_MAX_CONF_REPLACE can be <= 7. I will try to rebuild with a larger max and see if it breaks, there may be a reason it is set to max 2.

abstract-threadpool avatar Apr 25 '25 18:04 abstract-threadpool

Any news on this?

Turns out it’s rather complicated making Arch-based distros having persistence, ithout.

Moonbase59 avatar May 23 '25 20:05 Moonbase59

I thought I had a solution for supporting more but I can not get the solution to work in GRUB2 mode, looking at the code it will not be as simple as I thought for GRUB2. Debugging it is proving difficult, but I am still trying.

abstract-threadpool avatar May 26 '25 12:05 abstract-threadpool

Wonderful, thanks, appreciate it!

Moonbase59 avatar Jun 18 '25 17:06 Moonbase59