feat: add Ventoy-derived support files for direct boot path
Include pre-built x64 support binaries needed for Ventoy-compatible direct ISO boot: - hiperiso_x64.efi: standalone chain-loader EFI app - hiperiso.cpio, vtloopex.cpio, hiperiso_unix.cpio: initrd injection - iso9660_x64.efi, udf_x64.efi: standalone filesystem drivers - vtoyutil_x64.efi: utility driver - vtoyjump64.exe, common_bcd.xz, common_bootmgr.xz: Windows PE boot - wimboot.x86_64.xz, memdisk, ipxe.krn: legacy boot helpers - dragonfly.mfs.xz: DragonFly BSD support - 7z/, imdisk/: Windows runtime tools All files are Ventoy-derived binaries (not rebuilt from source). Standalone EFI app confirmed safe: receives data via command line params (env_param, mem:), not via VENTOY_GUID. Disk image: 32MB FAT16, 6MB free after all files added.
This commit is contained in:
@@ -100,6 +100,12 @@ cp "$HIPERISO_ROOT/config/hiperiso.json.example" "$PAYLOAD/config/"
|
||||
# ── version ─────────────────────────────────────────────────────────
|
||||
echo "1.0.0" > "$PAYLOAD/hiperiso/version"
|
||||
|
||||
# Extract Ventoy-derived support files for direct boot path
|
||||
if [ -f "$HIPERISO_ROOT/vendor/support-x64.tar.xz" ]; then
|
||||
tar -xJf "$HIPERISO_ROOT/vendor/support-x64.tar.xz" -C "$STAGING/"
|
||||
cp -a "$STAGING/support-x64/"* "$PAYLOAD/hiperiso/"
|
||||
fi
|
||||
|
||||
rm -f "$PAYLOAD/log.txt"
|
||||
|
||||
sed -i 's/ventoy/hiperiso/g' "$PAYLOAD/grub/i386-pc/moddep.lst" 2>/dev/null || true
|
||||
@@ -146,6 +152,24 @@ for f in "$PAYLOAD"/tool/x86_64/*; do
|
||||
done
|
||||
mcopy -i "$ESP_IMG" "$PAYLOAD/hiperiso/version" ::/hiperiso/
|
||||
|
||||
for f in "$PAYLOAD"/hiperiso/*; do
|
||||
[ -f "$f" ] || continue
|
||||
name=$(basename "$f")
|
||||
case "$name" in hiperiso.disk.img*) continue ;; esac
|
||||
mcopy -i "$ESP_IMG" "$f" ::/hiperiso/ 2>/dev/null || true
|
||||
done
|
||||
for d in 7z imdisk; do
|
||||
if [ -d "$PAYLOAD/hiperiso/$d" ]; then
|
||||
mmd -i "$ESP_IMG" "::/hiperiso/$d" 2>/dev/null || true
|
||||
for sub in "$PAYLOAD/hiperiso/$d"/*/; do
|
||||
[ -d "$sub" ] || continue
|
||||
subdir=$(basename "$sub")
|
||||
mmd -i "$ESP_IMG" "::/hiperiso/$d/$subdir" 2>/dev/null || true
|
||||
mcopy -s -i "$ESP_IMG" "$sub." "::/hiperiso/$d/$subdir/" 2>/dev/null || true
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
xz --check=crc32 "$ESP_IMG"
|
||||
|
||||
echo "=== hiperiso release package assembled ==="
|
||||
|
||||
Reference in New Issue
Block a user