[issue]: conf_replace: Can we have more than 2 files replaced please?
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"?
I also asked the EndeavourOS devs to include that feature: https://github.com/endeavouros-team/EndeavourOS-ISO/issues/74
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.
Any news on this?
Turns out it’s rather complicated making Arch-based distros having persistence, ithout.
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.
Wonderful, thanks, appreciate it!