build: extend Ventoy->hiperiso sed patches to all modsrc references
The ' www.ventoy.net' string baked into BOOTX64.EFI is NOT a URL - it's a magic GUID (16 bytes: 0x77772020 0x2e77 0x6576 ...) that spells ' www.ventoy.net' when interpreted as ASCII. It's used as a fingerprint in Ventoy's data partition structures to distinguish Ventoy-managed files from regular files. Changing it would break disk format compatibility. The actual GRUB error message URL (line 551) is correctly patched to 'redbearos.org/hiperiso to use Hiperiso'. Build script also copies chain-boot EFI binaries (hiperiso_x64.efi, iso9660_x64.efi, udf_x64.efi, vtoyutil_x64.efi, wimboot.x86_64.xz) to the ESP at /hiperiso/ so chain boot works regardless of which partition hiso_path points to.
This commit is contained in:
@@ -160,6 +160,14 @@ cp "$PAYLOAD/EFI/hiperiso/vmlinuz" "$PAYLOAD/EFI/hiperiso/initramfs.cpio.gz" \
|
||||
cp "$PAYLOAD"/EFI/hiperiso/trace/*.events "$ESP_STAGING/EFI/hiperiso/trace/" 2>/dev/null || true
|
||||
|
||||
cp "$PAYLOAD/grub/grub.cfg" "$ESP_STAGING/grub/"
|
||||
# Copy chain-boot EFI binaries + helpers to the ESP at /hiperiso/
|
||||
# (grub.cfg looks for them at \$hiso_path which is the data partition;
|
||||
# having them also on the ESP helps when the data partition fails to
|
||||
# mount or doesn't carry the hiperiso/ directory.)
|
||||
mkdir -p "$ESP_STAGING/hiperiso"
|
||||
for efi in hiperiso_x64.efi iso9660_x64.efi udf_x64.efi vtoyutil_x64.efi wimboot.x86_64.xz; do
|
||||
[ -f "$PAYLOAD/hiperiso/$efi" ] && cp "$PAYLOAD/hiperiso/$efi" "$ESP_STAGING/hiperiso/" || true
|
||||
done
|
||||
for cfg in checksum.cfg debug.cfg hwinfo.cfg keyboard.cfg localboot.cfg menulang.cfg power.cfg; do
|
||||
[ -f "$PAYLOAD/grub/$cfg" ] && cp "$PAYLOAD/grub/$cfg" "$ESP_STAGING/grub/" || true
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user