Add build, deploy and test sources
This commit is contained in:
1 parent
b962581812
commit
3d1a08f230
259 files changed
+15273
No files matched your search
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
SRC=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
W=/tmp/menulst
|
||||
rm -rf $W; mkdir -p $W
|
||||
7z e -y -o$W "$SRC" 'boot/grub/menu.lst' 'boot/grub/grub.cfg' >/dev/null 2>&1
|
||||
echo "=== ATI2025 / ADDH12 / ACPH entries in menu.lst:"
|
||||
grep -n -i -A6 -E 'ATI2025|ADDH12|ACPH|True Image 2025|Disk Director' $W/menu.lst | head -80
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
ISO=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
W=/tmp/acr
|
||||
rm -rf $W; mkdir -p $W
|
||||
|
||||
echo "=== top level:"
|
||||
7z l -ba "$ISO" 2>/dev/null | awk '{print $NF}' | cut -d/ -f1 | sort -u | head -20
|
||||
|
||||
echo "=== ACR products:"
|
||||
7z l -ba "$ISO" 2>/dev/null | awk '{print $NF}' | grep -i '^ACR/' | cut -d/ -f1-2 | sort -u | head -40
|
||||
|
||||
echo "=== boot/grub/grub.cfg:"
|
||||
7z e -y -o$W "$ISO" 'boot/grub/grub.cfg' >/dev/null 2>&1
|
||||
sed -n '1,120p' $W/grub.cfg 2>/dev/null
|
||||
|
||||
echo "=== efi loaders:"
|
||||
7z e -y -o$W "$ISO" 'efi/boot/bootx64.efi' 'efi/boot/grubx64.efi' >/dev/null 2>&1
|
||||
ls -l $W/*.efi 2>/dev/null
|
||||
for f in $W/*.efi; do
|
||||
printf ' %-14s ' "$(basename "$f")"
|
||||
sbverify --list "$f" 2>/dev/null | tr '\n' ' ' | cut -c1-140; echo
|
||||
done
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
ISO=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
W=/tmp/acr
|
||||
echo "=== rest of grub.cfg (120+):"
|
||||
sed -n '120,260p' $W/grub.cfg
|
||||
|
||||
echo
|
||||
echo "=== ATI2025 / DD dirs content:"
|
||||
for d in ATI2025 ADDH12 ADD12; do
|
||||
echo "--- ACR/$d"
|
||||
7z l -ba "$ISO" 2>/dev/null | awk -v p="ACR/$d/" '$NF ~ "^"p {printf " %-40s %10d\n", $NF, $4}' | head -12
|
||||
tot=$(7z l -ba "$ISO" 2>/dev/null | awk -v p="ACR/$d/" '$NF ~ "^"p {s+=$4} END{print s}')
|
||||
echo " total: $((tot/1024/1024)) MB"
|
||||
done
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
W=/path/to/pf/acronis
|
||||
for d in ADD ABA; do
|
||||
iso="/mnt/f/efi/Paravis/Utilities/$d"
|
||||
out="$W/$d.boot"
|
||||
rm -rf "$out"; mkdir -p "$out"
|
||||
echo "===================== $d"
|
||||
xorriso -indev "$iso" -osirrox on -extract_boot_images "$out" 2>&1 | grep -viE 'update|note|warning|sorry|sorry' | head -10
|
||||
ls -l "$out"
|
||||
done
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
W=/path/to/pf/acronis
|
||||
O="$W/orig"
|
||||
mkdir -p "$O"
|
||||
|
||||
for d in ADD ABA; do
|
||||
dst="/mnt/f/efi/Paravis/Utilities/$d"
|
||||
[ -f "$O/$d" ] || cp -f "$dst" "$O/$d"
|
||||
cp -f "$W/$d.rebuilt.iso" "$dst"
|
||||
printf "%-4s %s bytes\n" "$d" "$(stat -c %s "$dst")"
|
||||
done
|
||||
|
||||
echo "--- signatures inside the new ISOs:"
|
||||
for d in ADD ABA; do
|
||||
rm -rf /tmp/chk; mkdir -p /tmp/chk
|
||||
7z e -y -o/tmp/chk "/mnt/f/efi/Paravis/Utilities/$d" 'efi/boot/bootx64.efi' >/dev/null
|
||||
printf " %-4s " "$d"
|
||||
sbverify --cert /path/to/pf/Ventoy/keys/ventoy.crt /tmp/chk/bootx64.efi >/dev/null 2>&1 && echo "our signature OK" || echo "SIGNATURE PROBLEM"
|
||||
done
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
W=/path/to/pf/acronis
|
||||
for d in ADD ABA; do
|
||||
echo "===================== $d : efi files"
|
||||
find "$W/$d" -iname '*.efi' -printf ' %-46P %10s\n' | sort
|
||||
echo "--- cfg/xml next to loader:"
|
||||
find "$W/$d" -maxdepth 2 -iname '*.xml' -o -maxdepth 2 -iname '*.cfg' | sed 's/^/ /'
|
||||
done
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
W=/path/to/pf/acronis
|
||||
rm -rf "$W"; mkdir -p "$W/ADD" "$W/ABA"
|
||||
|
||||
echo "=== extracting"
|
||||
7z x -y -o"$W/ADD" "/mnt/f/efi/Paravis/Utilities/ADD" >/dev/null
|
||||
7z x -y -o"$W/ABA" "/mnt/f/efi/Paravis/Utilities/ABA" >/dev/null
|
||||
|
||||
for d in ADD ABA; do
|
||||
echo "===================== $d"
|
||||
echo "--- size of tree:"; du -sh "$W/$d" | cut -f1
|
||||
echo "--- [BOOT] and efi:"; ls -l "$W/$d/[BOOT]" 2>/dev/null; ls -l "$W/$d/efi/boot" 2>/dev/null
|
||||
echo "--- hashes:"
|
||||
( cd "$W/$d" && sha256sum efi/boot/bootx64.efi 2>/dev/null; sha256sum "Recovery Manager/bootwiz64.efi" 2>/dev/null || true )
|
||||
done
|
||||
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
W=/path/to/pf/acronis
|
||||
K=/path/to/pf/Ventoy/keys
|
||||
|
||||
for d in ADD ABA; do
|
||||
echo "===================== $d"
|
||||
T="$W/$d"
|
||||
|
||||
# 1. BIOS el-torito image goes into the tree so xorriso can reference it
|
||||
cp -f "$W/$d.boot/eltorito_img1_bios.img" "$T/[BOOT]/bios.img"
|
||||
|
||||
# 2. sign the UEFI loader(s) in place
|
||||
sign() {
|
||||
local f="$1"
|
||||
rm -f /tmp/s.efi
|
||||
sbsign --key "$K/ventoy.key" --cert "$K/ventoy.crt" --output /tmp/s.efi "$f" >/dev/null 2>&1 \
|
||||
|| { echo " sign failed: $f"; return; }
|
||||
sbverify --cert "$K/ventoy.crt" /tmp/s.efi >/dev/null 2>&1 \
|
||||
|| { echo " verify failed: $f"; return; }
|
||||
cp -f /tmp/s.efi "$f"
|
||||
printf " signed %-40s %s\n" "${f#$T/}" "$(stat -c %s "$f")"
|
||||
}
|
||||
sign "$T/efi/boot/bootx64.efi"
|
||||
[ -f "$T/Recovery Manager/bootwiz64.efi" ] && sign "$T/Recovery Manager/bootwiz64.efi"
|
||||
sign "$T/efi/boot/bootia32.efi"
|
||||
|
||||
# 3. rebuild
|
||||
out="$W/$d.rebuilt.iso"
|
||||
rm -f "$out"
|
||||
xorriso -as mkisofs -V ACRONIS_MEDIA -R -J -joliet-long \
|
||||
-b '[BOOT]/bios.img' -no-emul-boot -boot-load-size 4 \
|
||||
-eltorito-alt-boot -e 'efi/boot/bootx64.efi' -no-emul-boot \
|
||||
-o "$out" "$T" 2>&1 | tail -5
|
||||
echo " result: $(stat -c %s "$out") bytes"
|
||||
xorriso -indev "$out" -report_el_torito plain 2>&1 | grep -E 'El Torito (boot img|img blks)' | sed 's/^/ /'
|
||||
done
|
||||
@@ -0,0 +1,76 @@
|
||||
#!/bin/bash
|
||||
# Hybrid Acronis images: x64 set (our GRUB2 menu) + x86 set (xorboot/ia32).
|
||||
# EFI boot image carries an i386 GRUB that boots the 32-bit kernel, so
|
||||
# 32-bit UEFI firmware works too. BIOS El Torito is kept for legacy.
|
||||
set -e
|
||||
SRC=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
OUT=/path/to/pf/acronis/hybrid
|
||||
W=/root/hybrid
|
||||
rm -rf "$W"; mkdir -p "$W" "$OUT"
|
||||
|
||||
apt-get install -y grub-pc-bin grub-efi-amd64-bin grub-efi-ia32-bin mtools xorriso >/tmp/apt4.log 2>&1 || true
|
||||
|
||||
build_one() {
|
||||
local name="$1" dir="$2" k64="$3" i64="$4" k32="$5" i32="$6"
|
||||
local tree="$W/$name"
|
||||
mkdir -p "$tree/$dir" "$tree/efi/boot" "$tree/EFI/BOOT" "$tree/boot/grub"
|
||||
|
||||
echo "=== $name : $dir"
|
||||
7z e -y -o"$tree/$dir" "$SRC" \
|
||||
"ACR/$dir/$k64" $(for i in $i64; do echo "ACR/$dir/$i"; done) \
|
||||
"ACR/$dir/$k32" $(for i in $i32; do echo "ACR/$dir/$i"; done) >/dev/null
|
||||
du -sh "$tree/$dir"
|
||||
|
||||
# ---- configs
|
||||
cat > "$W/$name.32.cfg" <<EOF
|
||||
search --no-floppy --set=root --file /$dir/$k32
|
||||
linux /$dir/$k32 vga=791 mbrcrcs=on force_modules=usbhid lang=ru quiet
|
||||
initrd $(for i in $i32; do echo -n "/$dir/$i "; done)
|
||||
boot
|
||||
EOF
|
||||
cat > "$W/$name.64.cfg" <<EOF
|
||||
search --no-floppy --set=root --file /$dir/$k64
|
||||
linux /$dir/$k64 vga=791 mbrcrcs=on force_modules=usbhid lang=ru quiet
|
||||
initrd $(for i in $i64; do echo -n "/$dir/$i "; done)
|
||||
boot
|
||||
EOF
|
||||
|
||||
MODS="linux normal iso9660 search search_label search_fs_file part_msdos echo test"
|
||||
grub-mkimage -O i386-efi -o "$W/BOOTIA32.EFI" -p /boot/grub -d /usr/lib/grub/i386-efi -c "$W/$name.32.cfg" $MODS
|
||||
grub-mkimage -O x86_64-efi -o "$W/BOOTX64.EFI" -p /boot/grub -d /usr/lib/grub/x86_64-efi -c "$W/$name.64.cfg" $MODS
|
||||
|
||||
# lowercase copy for xorboot (old Acronis layout) and uppercase for firmware
|
||||
cp -f "$W/BOOTIA32.EFI" "$tree/efi/boot/bootia32.efi"
|
||||
cp -f "$W/BOOTX64.EFI" "$tree/efi/boot/bootx64.efi"
|
||||
cp -f "$W/BOOTIA32.EFI" "$tree/EFI/BOOT/BOOTIA32.EFI"
|
||||
cp -f "$W/BOOTX64.EFI" "$tree/EFI/BOOT/BOOTX64.EFI"
|
||||
|
||||
# ---- EFI boot image (FAT12, both loaders)
|
||||
dd if=/dev/zero of="$tree/efi.img" bs=1k count=1440 status=none
|
||||
mkfs.vfat -F 12 -n EFI "$tree/efi.img" >/dev/null
|
||||
mmd -i "$tree/efi.img" ::/EFI ::/EFI/BOOT
|
||||
mcopy -i "$tree/efi.img" "$W/BOOTIA32.EFI" ::/EFI/BOOT/BOOTIA32.EFI
|
||||
mcopy -i "$tree/efi.img" "$W/BOOTIA32.EFI" ::/EFI/BOOT/BOOTX64.EFI # xorboot looks for this name
|
||||
mcopy -i "$tree/efi.img" "$W/BOOTX64.EFI" ::/EFI/BOOT/BOOTX64X.EFI >/dev/null 2>&1 || true
|
||||
|
||||
# ---- base image (BIOS El Torito comes from grub-mkrescue)
|
||||
grub-mkrescue -o "$W/$name.base.iso" "$tree" >/tmp/mk_$name.log 2>&1
|
||||
xorriso -osirrox on -indev "$W/$name.base.iso" \
|
||||
-extract /boot/grub/i386-pc/eltorito.img "$tree/boot/grub/i386-pc/eltorito.img" >/dev/null 2>&1
|
||||
|
||||
# ---- final ISO (Rock Ridge + Joliet so lowercase paths are visible)
|
||||
xorriso -as mkisofs -R -J -joliet-long -V PARAVIS_ACRONIS -o "$OUT/$name.iso" \
|
||||
-b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
-eltorito-alt-boot -e efi.img -no-emul-boot \
|
||||
"$tree" >/tmp/xor_$name.log 2>&1
|
||||
|
||||
printf " -> %s: %s bytes\n" "$name" "$(stat -c %s "$OUT/$name.iso")"
|
||||
xorriso -indev "$OUT/$name.iso" -report_el_torito plain 2>&1 | grep -E 'El Torito boot img' | sed 's/^/ /'
|
||||
printf " tree: "; 7z l -ba "$OUT/$name.iso" 2>/dev/null | grep -oE '(efi|EFI)/boot/[Bb][Oo][Oo][Tt](IA32|X64|ia32|x64)\.efi' | tr '\n' ' '; echo
|
||||
}
|
||||
|
||||
# ADD = True Image 2025 : x64 dat10/11/12, x86 dat2/3/4
|
||||
build_one ADD ATI2025 dat10.dat "dat11.dat dat12.dat" dat2.dat "dat3.dat dat4.dat"
|
||||
# ABA = Disk Director 12.5 : x64 dat14/15/16, x86 dat10/11/12
|
||||
build_one ABA ADDH12 dat14.dat "dat15.dat dat16.dat" dat10.dat "dat11.dat dat12.dat"
|
||||
ls -l "$OUT"
|
||||
@@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
# Rebuild ADD/ABA images with a dual-arch EFI boot image (x64 + ia32).
|
||||
set -e
|
||||
W=/tmp/acrbuild2
|
||||
OLD=/path/to/pf/acronis/prev # previous images (mkrescue, BIOS+boot x64)
|
||||
rm -rf "$W"; mkdir -p "$W"
|
||||
|
||||
apt-get install -y grub-efi-ia32-bin grub-efi-amd64-bin grub-pc-bin mtools xorriso >/tmp/apt2.log 2>&1 || true
|
||||
|
||||
build_one() {
|
||||
local name="$1" srcdir="$2" kernel="$3" initrds="$4"
|
||||
local tree="$W/$name"
|
||||
mkdir -p "$tree/boot/grub/i386-pc" "$tree/$srcdir"
|
||||
|
||||
echo "=== $name ($srcdir)"
|
||||
# source files: take from the existing image to avoid re-extracting from the 4.4G ISO
|
||||
xorriso -osirrox on -indev "/tmp/acrbuild/$name.iso" \
|
||||
-extract "/$srcdir" "$tree/$srcdir" >/dev/null 2>&1
|
||||
xorriso -osirrox on -indev "/tmp/acrbuild/$name.iso" \
|
||||
-extract /boot/grub/i386-pc/eltorito.img "$tree/boot/grub/i386-pc/eltorito.img" >/dev/null 2>&1
|
||||
|
||||
cat > "$W/$name.cfg" <<EOF
|
||||
search --no-floppy --set=root --file /$srcdir/$kernel
|
||||
linux /$srcdir/$kernel force_modules=usbhid quiet lang=RU_ru
|
||||
initrd $(for i in $initrds; do echo -n "/$srcdir/$i "; done)
|
||||
boot
|
||||
EOF
|
||||
|
||||
local mods64="linux normal iso9660 search search_label search_fs_file part_msdos echo test"
|
||||
local mods32="$mods64"
|
||||
|
||||
grub-mkimage -O x86_64-efi -o "$W/BOOTX64.EFI" -p /boot/grub -d /usr/lib/grub/x86_64-efi -c "$W/$name.cfg" $mods64
|
||||
grub-mkimage -O i386-efi -o "$W/BOOTIA32.EFI" -p /boot/grub -d /usr/lib/grub/i386-efi -c "$W/$name.cfg" $mods32
|
||||
ls -l "$W/BOOTX64.EFI" "$W/BOOTIA32.EFI"
|
||||
|
||||
# FAT image with both loaders
|
||||
rm -f "$W/efi.img"
|
||||
dd if=/dev/zero of="$W/efi.img" bs=1M count=16 status=none
|
||||
mkfs.vfat -n EFI "$W/efi.img" >/dev/null
|
||||
mmd -i "$W/efi.img" ::/EFI ::/EFI/BOOT
|
||||
mcopy -i "$W/efi.img" "$W/BOOTX64.EFI" ::/EFI/BOOT/BOOTX64.EFI
|
||||
mcopy -i "$W/efi.img" "$W/BOOTIA32.EFI" ::/EFI/BOOT/BOOTIA32.EFI
|
||||
mdir -i "$W/efi.img" ::/EFI/BOOT
|
||||
|
||||
cp -f "$W/efi.img" "$tree/efi.img"
|
||||
xorriso -as mkisofs -o "$W/$name.iso" \
|
||||
-b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
-eltorito-alt-boot -e efi.img -no-emul-boot \
|
||||
"$tree" >/tmp/xorriso_$name.log 2>&1 || { tail -10 /tmp/xorriso_$name.log; return 1; }
|
||||
|
||||
printf " -> %s.iso : %s bytes\n" "$name" "$(stat -c %s "$W/$name.iso")"
|
||||
xorriso -indev "$W/$name.iso" -report_el_torito plain 2>&1 | grep -E 'El Torito boot img' | sed 's/^/ /'
|
||||
echo -n " efi.img contents: "
|
||||
xorriso -osirrox on -indev "$W/$name.iso" -extract /efi.img /tmp/chk_efi.img >/dev/null 2>&1
|
||||
mdir -i /tmp/chk_efi.img ::/EFI/BOOT | tr '\n' ' '; echo
|
||||
}
|
||||
|
||||
build_one ADD ATI2025 dat10.dat "dat11.dat dat12.dat"
|
||||
build_one ABA ADDH12 dat14.dat "dat15.dat dat16.dat"
|
||||
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
# Build new single-file bootable images for Acronis TI 2025 (ADD) and
|
||||
# Disk Director 12.5 (ABA), keeping the old file names/paths so that the
|
||||
# legacy (grub4dos/xorboot) menu keeps working unchanged.
|
||||
set -e
|
||||
ISO=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
W=/tmp/acrbuild
|
||||
rm -rf "$W"; mkdir -p "$W"
|
||||
|
||||
apt-get install -y grub-pc-bin grub-efi-amd64-bin mtools xorriso >/tmp/apt_grubiso.log 2>&1 || true
|
||||
|
||||
build_one() {
|
||||
local name="$1" srcdir="$2" kernel="$3" initrds="$4"
|
||||
local tree="$W/$name"
|
||||
mkdir -p "$tree/boot/grub" "$tree/$srcdir"
|
||||
echo "=== $name: extracting $srcdir"
|
||||
7z e -y -o"$tree/$srcdir" "$ISO" "ACR/$srcdir/$kernel" $(for i in $initrds; do echo "ACR/$srcdir/$i"; done) >/dev/null
|
||||
ls -l "$tree/$srcdir" | tail -3
|
||||
|
||||
cat > "$tree/boot/grub/grub.cfg" <<EOF
|
||||
set timeout=0
|
||||
set default=0
|
||||
|
||||
menuentry "Acronis" {
|
||||
linux /$srcdir/$kernel force_modules=usbhid quiet lang=RU_ru
|
||||
initrd $(for i in $initrds; do echo -n "/$srcdir/$i "; done)
|
||||
}
|
||||
EOF
|
||||
grub-mkrescue -o "$W/$name.iso" "$tree" >/tmp/mkrescue_$name.log 2>&1 || { tail -5 /tmp/mkrescue_$name.log; return 1; }
|
||||
printf " -> %s : %s bytes\n" "$name" "$(stat -c %s "$W/$name.iso")"
|
||||
xorriso -indev "$W/$name.iso" -report_el_torito plain 2>&1 | grep -E 'El Torito boot img' | sed 's/^/ /'
|
||||
}
|
||||
|
||||
build_one ADD ATI2025 dat10.dat "dat11.dat dat12.dat"
|
||||
build_one ABA ADDH12 dat14.dat "dat15.dat dat16.dat"
|
||||
|
||||
ls -l "$W"/*.iso
|
||||
@@ -0,0 +1,77 @@
|
||||
#!/bin/bash
|
||||
# Rebuild Acronis component images (self-contained: source ISO on D:).
|
||||
# Result: D:/PF2026/acronis/new/{ADD,ABA}.iso with BIOS + dual-arch EFI.
|
||||
set -e
|
||||
SRC=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
OUT=/path/to/pf/acronis/new
|
||||
W=/root/acrbuild
|
||||
rm -rf "$W"; mkdir -p "$W" "$OUT"
|
||||
|
||||
apt-get install -y grub-pc-bin grub-efi-amd64-bin grub-efi-ia32-bin mtools xorriso >/tmp/apt3.log 2>&1 || true
|
||||
|
||||
build_one() {
|
||||
local name="$1" srcdir="$2" kernel="$3" initrds="$4"
|
||||
local tree="$W/$name"
|
||||
mkdir -p "$tree/$srcdir"
|
||||
|
||||
echo "=== $name : ACR/$srcdir"
|
||||
7z e -y -o"$tree/$srcdir" "$SRC" "ACR/$srcdir/$kernel" $(for i in $initrds; do echo "ACR/$srcdir/$i"; done) >/dev/null
|
||||
ls -l "$tree/$srcdir" | tail -4
|
||||
|
||||
mkdir -p "$tree/boot/grub"
|
||||
cat > "$tree/boot/grub/grub.cfg" <<EOF
|
||||
set timeout=0
|
||||
set default=0
|
||||
menuentry "Acronis" {
|
||||
linux /$srcdir/$kernel force_modules=usbhid quiet lang=RU_ru
|
||||
initrd $(for i in $initrds; do echo -n "/$srcdir/$i "; done)
|
||||
}
|
||||
EOF
|
||||
|
||||
# 1. base image: BIOS boot (grub-pc) + x64 EFI, from grub-mkrescue
|
||||
grub-mkrescue -o "$W/$name.base.iso" "$tree" >/tmp/mk_$name.log 2>&1
|
||||
xorriso -osirrox on -indev "$W/$name.base.iso" \
|
||||
-extract /boot/grub/i386-pc/eltorito.img "$tree/boot/grub/i386-pc/eltorito.img" >/dev/null 2>&1
|
||||
|
||||
# 2. our own EFI boot image with BOTH loaders
|
||||
cat > "$W/$name.cfg" <<EOF
|
||||
search --no-floppy --set=root --file /$srcdir/$kernel
|
||||
linux /$srcdir/$kernel force_modules=usbhid quiet lang=RU_ru
|
||||
initrd $(for i in $initrds; do echo -n "/$srcdir/$i "; done)
|
||||
boot
|
||||
EOF
|
||||
grub-mkimage -O x86_64-efi -o "$W/BOOTX64.EFI" -p /boot/grub \
|
||||
-d /usr/lib/grub/x86_64-efi -c "$W/$name.cfg" \
|
||||
linux normal iso9660 search search_label search_fs_file part_msdos echo test
|
||||
grub-mkimage -O i386-efi -o "$W/BOOTIA32.EFI" -p /boot/grub \
|
||||
-d /usr/lib/grub/i386-efi -c "$W/$name.cfg" \
|
||||
linux normal iso9660 search search_label search_fs_file part_msdos echo test
|
||||
|
||||
# xorboot may look for the loader in the ISO tree too
|
||||
mkdir -p "$tree/EFI/BOOT"
|
||||
# xorboot (ia32) looks for the hardcoded name "bootx64.efi" - give it the 32-bit loader
|
||||
cp -f "$W/BOOTIA32.EFI" "$tree/EFI/BOOT/BOOTIA32.EFI"
|
||||
cp -f "$W/BOOTIA32.EFI" "$tree/EFI/BOOT/BOOTX64.EFI"
|
||||
|
||||
dd if=/dev/zero of="$tree/efi.img" bs=1k count=1440 status=none
|
||||
mkfs.vfat -F 12 -n EFI "$tree/efi.img" >/dev/null
|
||||
mmd -i "$tree/efi.img" ::/EFI ::/EFI/BOOT
|
||||
mcopy -i "$tree/efi.img" "$W/BOOTIA32.EFI" ::/EFI/BOOT/BOOTIA32.EFI
|
||||
mcopy -i "$tree/efi.img" "$W/BOOTIA32.EFI" ::/EFI/BOOT/BOOTX64.EFI
|
||||
|
||||
# 3. final ISO: BIOS from grub-pc + our dual EFI image
|
||||
xorriso -as mkisofs -o "$OUT/$name.iso" \
|
||||
-b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
-eltorito-alt-boot -e efi.img -no-emul-boot \
|
||||
"$tree" >/tmp/xor_$name.log 2>&1
|
||||
|
||||
printf " -> %s.iso %s bytes\n" "$name" "$(stat -c %s "$OUT/$name.iso")"
|
||||
xorriso -indev "$OUT/$name.iso" -report_el_torito plain 2>&1 | grep -E 'El Torito boot img' | sed 's/^/ /'
|
||||
rm -f /tmp/e.img
|
||||
xorriso -osirrox on -indev "$OUT/$name.iso" -extract /efi.img /tmp/e.img >/dev/null 2>&1
|
||||
printf " efi.img: "; mdir -i /tmp/e.img ::/EFI/BOOT | grep -oE 'BOOT(IA32|X64) +EFI' | tr '\n' ' '; echo
|
||||
}
|
||||
|
||||
build_one ADD ATI2025 dat10.dat "dat11.dat dat12.dat"
|
||||
build_one ABA ADDH12 dat14.dat "dat15.dat dat16.dat"
|
||||
ls -l "$OUT"
|
||||
@@ -0,0 +1,66 @@
|
||||
#!/bin/bash
|
||||
# Merged Acronis images: one file per product.
|
||||
# tree : old Acronis ISO content + new Acronis kernel sets
|
||||
# BIOS : grub-pc image -> new Acronis (32-bit kernel, like their own menu)
|
||||
# UEFI : ORIGINAL old Acronis EFI image -> ia32/xorboot boots old Acronis
|
||||
set -e
|
||||
SRC=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
OLD=/path/to/pf/acronis/orig
|
||||
OUT=/path/to/pf/acronis/merged
|
||||
W=/root/merged
|
||||
rm -rf "$W"; mkdir -p "$W" "$OUT"
|
||||
|
||||
apt-get install -y grub-pc-bin grub-efi-amd64-bin grub-efi-ia32-bin mtools xorriso >/tmp/apt5.log 2>&1 || true
|
||||
|
||||
build_one() {
|
||||
local name="$1" dir="$2" k32="$3" i32="$4" k64="$5" i64="$6"
|
||||
local tree="$W/$name"
|
||||
|
||||
echo "=== $name"
|
||||
mkdir -p "$tree" "$tree/$dir" "$W/$name.boot" "$tree/boot/grub/i386-pc"
|
||||
|
||||
# 1. old ISO content (this is what ia32 boots through its own loader)
|
||||
xorriso -osirrox on -indev "$OLD/$name" -extract / "$tree" >/dev/null 2>&1
|
||||
|
||||
# 2. new kernel sets from the 2024 collection
|
||||
7z e -y -o"$tree/$dir" "$SRC" \
|
||||
"ACR/$dir/$k32" $(for i in $i32; do echo "ACR/$dir/$i"; done) \
|
||||
"ACR/$dir/$k64" $(for i in $i64; do echo "ACR/$dir/$i"; done) >/dev/null
|
||||
|
||||
echo " old tree files: $(find "$tree" -type f | wc -l)"
|
||||
# 3. BIOS menu -> new Acronis (same cmdline as their grub4dos menu)
|
||||
cat > "$tree/boot/grub/grub.cfg" <<EOF
|
||||
set timeout=0
|
||||
set default=0
|
||||
menuentry "Acronis" {
|
||||
linux /$dir/$k32 vga=791 mbrcrcs=on force_modules=usbhid lang=ru quiet
|
||||
initrd $(for i in $i32; do echo -n "/$dir/$i "; done)
|
||||
}
|
||||
EOF
|
||||
|
||||
# 4. BIOS El Torito image from grub-mkrescue
|
||||
grub-mkrescue -o "$W/$name.base.iso" "$tree" >/tmp/mk_$name.log 2>&1
|
||||
xorriso -osirrox on -indev "$W/$name.base.iso" \
|
||||
-extract /boot/grub/i386-pc/eltorito.img "$tree/boot/grub/i386-pc/eltorito.img" >/dev/null 2>&1
|
||||
|
||||
# 5. ORIGINAL EFI image of the old ISO (acronis bootwiz) -> ia32 path stays intact
|
||||
xorriso -osirrox on -indev "$OLD/$name" -extract_boot_images "$W/$name.boot" >/dev/null 2>&1
|
||||
local efiimg
|
||||
efiimg=$(ls "$W/$name.boot"/*uefi*.img 2>/dev/null | head -1)
|
||||
cp -f "$efiimg" "$tree/efi_old.img"
|
||||
|
||||
# 6. final ISO
|
||||
xorriso -as mkisofs -R -J -joliet-long -V PARAVIS_ACRONIS -o "$OUT/$name.iso" \
|
||||
-b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
-eltorito-alt-boot -e efi_old.img -no-emul-boot \
|
||||
"$tree" >/tmp/xor_$name.log 2>&1 || { tail -8 /tmp/xor_$name.log; return 1; }
|
||||
|
||||
printf " -> %s: %s bytes (%s MB)\n" "$name" \
|
||||
"$(stat -c %s "$OUT/$name.iso")" "$(( $(stat -c %s "$OUT/$name.iso") / 1048576 ))"
|
||||
xorriso -indev "$OUT/$name.iso" -report_el_torito plain 2>&1 | grep -E 'El Torito boot img' | sed 's/^/ /'
|
||||
echo -n " old loader present: "; 7z l -ba "$OUT/$name.iso" 2>/dev/null | grep -c -iE 'efi/boot/bootia32\.efi' || true
|
||||
}
|
||||
|
||||
build_one ADD ATI2025 dat2.dat "dat3.dat dat4.dat" dat10.dat "dat11.dat dat12.dat"
|
||||
build_one ABA ADDH12 dat10.dat "dat11.dat dat12.dat" dat14.dat "dat15.dat dat16.dat"
|
||||
ls -l "$OUT"
|
||||
@@ -0,0 +1,67 @@
|
||||
#!/bin/bash
|
||||
# Rebuild the new Acronis images so that the BIOS (grub-pc) boot works:
|
||||
# the modules must be present on the ISO, otherwise GRUB drops to rescue.
|
||||
set -e
|
||||
SRC=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
OUT=/path/to/pf/acronis/new
|
||||
W=/root/new2
|
||||
rm -rf "$W"; mkdir -p "$W" "$OUT"
|
||||
|
||||
apt-get install -y grub-pc-bin grub-efi-amd64-bin grub-efi-ia32-bin mtools xorriso >/tmp/apt6.log 2>&1 || true
|
||||
|
||||
build_one() {
|
||||
local name="$1" dir="$2" kernel="$3" initrds="$4"
|
||||
local tree="$W/$name"
|
||||
mkdir -p "$tree/$dir" "$tree/boot/grub/i386-pc"
|
||||
|
||||
echo "=== $name ($dir)"
|
||||
7z e -y -o"$tree/$dir" "$SRC" "ACR/$dir/$kernel" $(for i in $initrds; do echo "ACR/$dir/$i"; done) >/dev/null
|
||||
|
||||
# BIOS menu
|
||||
cat > "$tree/boot/grub/grub.cfg" <<EOF
|
||||
set timeout=0
|
||||
set default=0
|
||||
menuentry "Acronis" {
|
||||
linux /$dir/$kernel vga=791 mbrcrcs=on force_modules=usbhid lang=ru quiet
|
||||
initrd $(for i in $initrds; do echo -n "/$dir/$i "; done)
|
||||
}
|
||||
EOF
|
||||
|
||||
# grub-pc modules must be on the media
|
||||
cp -f /usr/lib/grub/i386-pc/*.mod /usr/lib/grub/i386-pc/*.lst "$tree/boot/grub/i386-pc/" 2>/dev/null || true
|
||||
|
||||
# BIOS El Torito image
|
||||
grub-mkrescue -o "$W/$name.base.iso" "$tree" >/tmp/mk2_$name.log 2>&1
|
||||
xorriso -osirrox on -indev "$W/$name.base.iso" \
|
||||
-extract /boot/grub/i386-pc/eltorito.img "$tree/boot/grub/i386-pc/eltorito.img" >/dev/null 2>&1
|
||||
|
||||
# UEFI image: our x64 GRUB (standalone, embedded config) — only used if someone
|
||||
# boots the ISO straight from firmware; our menu uses loopback instead.
|
||||
cat > "$W/$name.efi.cfg" <<EOF
|
||||
search --no-floppy --set=root --file /$dir/$kernel
|
||||
linux /$dir/$kernel vga=791 mbrcrcs=on force_modules=usbhid lang=ru quiet
|
||||
initrd $(for i in $initrds; do echo -n "/$dir/$i "; done)
|
||||
boot
|
||||
EOF
|
||||
grub-mkimage -O x86_64-efi -o "$W/BOOTX64.EFI" -p /boot/grub -d /usr/lib/grub/x86_64-efi \
|
||||
-c "$W/$name.efi.cfg" linux normal iso9660 search search_label search_fs_file part_msdos echo test
|
||||
dd if=/dev/zero of="$tree/efi.img" bs=1k count=2048 status=none
|
||||
mkfs.vfat -F 12 -n EFI "$tree/efi.img" >/dev/null
|
||||
mmd -i "$tree/efi.img" ::/EFI ::/EFI/BOOT
|
||||
mcopy -i "$tree/efi.img" "$W/BOOTX64.EFI" ::/EFI/BOOT/BOOTX64.EFI
|
||||
mkdir -p "$tree/EFI/BOOT"
|
||||
cp -f "$W/BOOTX64.EFI" "$tree/EFI/BOOT/BOOTX64.EFI"
|
||||
|
||||
xorriso -as mkisofs -R -J -joliet-long -V PARAVIS_ACRONIS -o "$OUT/$name.iso" \
|
||||
-b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
-eltorito-alt-boot -e efi.img -no-emul-boot \
|
||||
"$tree" >/tmp/xor2_$name.log 2>&1
|
||||
|
||||
printf " -> %s: %s MB\n" "$name" "$(( $(stat -c %s "$OUT/$name.iso") / 1048576 ))"
|
||||
printf " modules in ISO: "
|
||||
7z l -ba "$OUT/$name.iso" 2>/dev/null | grep -c 'boot/grub/i386-pc/.*\.mod' || true
|
||||
}
|
||||
|
||||
build_one ADD ATI2025 dat10.dat "dat11.dat dat12.dat"
|
||||
build_one ABA ADDH12 dat14.dat "dat15.dat dat16.dat"
|
||||
ls -l "$OUT"
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
W=/tmp/cmp
|
||||
rm -rf $W; mkdir -p $W
|
||||
OLD=/path/to/pf/acronis/orig
|
||||
NEW=/path/to/pf/acronis/new
|
||||
|
||||
for tag in old new; do
|
||||
if [ $tag = old ]; then ISO="$OLD/ADD"; else ISO="$NEW/ADD.iso"; fi
|
||||
echo "===================== $tag : $ISO"
|
||||
echo "--- file:"
|
||||
file -b "$ISO"
|
||||
echo "--- el torito:"
|
||||
xorriso -indev "$ISO" -report_el_torito plain 2>&1 | grep -E 'Boot record|El Torito|Volume id' | sed 's/^/ /'
|
||||
echo "--- boot images extract:"
|
||||
rm -rf $W/$tag; mkdir -p $W/$tag
|
||||
xorriso -indev "$ISO" -osirrox on -extract_boot_images "$W/$tag" >/dev/null 2>&1
|
||||
ls -l "$W/$tag" | sed 's/^/ /'
|
||||
for img in "$W/$tag"/*uefi*.img; do
|
||||
[ -f "$img" ] || continue
|
||||
echo " uefi img: $(file -b "$img")"
|
||||
echo " contents:"
|
||||
mdir -i "$img" ::/ 2>/dev/null | head -8 | sed 's/^/ /'
|
||||
mdir -i "$img" ::/EFI/BOOT 2>/dev/null | head -8 | sed 's/^/ /'
|
||||
# boot sector details
|
||||
echo " boot sector:"
|
||||
dd if="$img" bs=1 count=64 status=none | od -An -tx1 | head -4 | sed 's/^/ /'
|
||||
done
|
||||
echo "--- catalog bytes:"
|
||||
cat_img="$W/$tag"/eltorito_catalog.img
|
||||
[ -f "$cat_img" ] && od -An -tx1 "$cat_img" | head -8 | sed 's/^/ /'
|
||||
done
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
U=/mnt/f/efi/Paravis/Utilities
|
||||
B=/path/to/pf/acronis/prev
|
||||
mkdir -p "$B"
|
||||
for f in ADD ABA; do
|
||||
[ -f "$B/$f.mkrescue" ] || cp -f "$U/$f" "$B/$f.mkrescue"
|
||||
cp -f "/tmp/acrbuild2/$f.iso" "$U/$f"
|
||||
printf " %-4s %s bytes\n" "$f" "$(stat -c %s "$U/$f")"
|
||||
done
|
||||
echo "--- EFI image inside each (what xorboot will load):"
|
||||
for f in ADD ABA; do
|
||||
rm -f /tmp/e.img
|
||||
xorriso -osirrox on -indev "$U/$f" -extract /efi.img /tmp/e.img >/dev/null 2>&1
|
||||
printf " %-4s " "$f"
|
||||
mdir -i /tmp/e.img ::/EFI/BOOT | grep -oE 'BOOT(IA32|X64) +EFI +[0-9]+' | tr '\n' ' '
|
||||
echo
|
||||
done
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
K=/path/to/pf/Ventoy/keys
|
||||
U=/mnt/f/efi/Paravis/Utilities
|
||||
B=/path/to/pf/acronis/prev
|
||||
|
||||
mkdir -p "$B"
|
||||
for f in ADD ABA; do
|
||||
[ -f "$B/$f" ] || cp -f "$U/$f" "$B/$f"
|
||||
cp -f "/tmp/acrbuild/$f.iso" "$U/$f"
|
||||
printf " %-4s %s bytes\n" "$f" "$(stat -c %s "$U/$f")"
|
||||
done
|
||||
|
||||
echo "--- El Torito of deployed images:"
|
||||
for f in ADD ABA; do
|
||||
echo " $f:"
|
||||
xorriso -indev "$U/$f" -report_el_torito plain 2>&1 | grep -E 'El Torito boot img' | sed 's/^/ /'
|
||||
done
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
ISO=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
U=/mnt/f/efi/Paravis/Utilities
|
||||
|
||||
mkdir -p "$U/ATI2025" "$U/ADDH12"
|
||||
|
||||
echo "=== Acronis True Image 2025 (ACR/ATI2025)"
|
||||
7z e -y -o"$U/ATI2025" "$ISO" 'ACR/ATI2025/dat10.dat' 'ACR/ATI2025/dat11.dat' 'ACR/ATI2025/dat12.dat' >/dev/null
|
||||
ls -l "$U/ATI2025"
|
||||
|
||||
echo "=== Acronis Disk Director 12.5 (ACR/ADDH12)"
|
||||
7z e -y -o"$U/ADDH12" "$ISO" 'ACR/ADDH12/dat14.dat' 'ACR/ADDH12/dat15.dat' 'ACR/ADDH12/dat16.dat' >/dev/null
|
||||
ls -l "$U/ADDH12"
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
for f in ADD ABA; do
|
||||
echo "===================== $f"
|
||||
7z l -ba "/path/to/pf/acronis/orig/$f" 2>/dev/null | awk '{printf " %-56s %10d\n", $NF, $4}' | sort -k1 | head -40
|
||||
done
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
W=/tmp/oldcfg
|
||||
rm -rf $W; mkdir -p $W
|
||||
echo "=== ADD: bootwiz.cfg / bootmenu.xml"
|
||||
7z e -y -o$W "/path/to/pf/acronis/orig/ADD" 'bootwiz.cfg' 'bootmenu.xml' >/dev/null 2>&1
|
||||
echo "--- bootwiz.cfg:"; cat $W/bootwiz.cfg 2>/dev/null
|
||||
echo "--- bootmenu.xml (head):"; head -40 $W/bootmenu.xml 2>/dev/null
|
||||
rm -f $W/bootwiz.cfg $W/bootmenu.xml
|
||||
|
||||
echo
|
||||
echo "=== ABA: bootwiz.cfg / bootmenu.xml / Manager/f11-grub.cfg / Manager/f11.cfg"
|
||||
7z e -y -o$W "/path/to/pf/acronis/orig/ABA" 'bootwiz.cfg' 'bootmenu.xml' 'Manager/f11-grub.cfg' 'Manager/f11.cfg' >/dev/null 2>&1
|
||||
echo "--- bootwiz.cfg:"; cat $W/bootwiz.cfg 2>/dev/null
|
||||
echo "--- f11-grub.cfg:"; cat $W/f11-grub.cfg 2>/dev/null
|
||||
echo "--- f11.cfg:"; cat $W/f11.cfg 2>/dev/null
|
||||
echo "--- bootmenu.xml (head):"; head -30 $W/bootmenu.xml 2>/dev/null
|
||||
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
SRC=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
OUT=/path/to/pf/acronis/acr
|
||||
|
||||
if [ ! -d "$OUT" ]; then
|
||||
echo "=== extracting ACR (once, ~4.4 GB)..."
|
||||
mkdir -p "$OUT"
|
||||
7z x -y -o"$OUT" "$SRC" 'ACR/*' >/dev/null
|
||||
fi
|
||||
echo "=== scanning kernels"
|
||||
python3 - <<'EOF'
|
||||
import glob, os, struct
|
||||
|
||||
rows = []
|
||||
for p in sorted(glob.glob('/path/to/pf/acronis/acr/ACR/*/*')):
|
||||
if not os.path.isfile(p) or os.path.getsize(p) < 1024 * 1024:
|
||||
continue
|
||||
try:
|
||||
with open(p, 'rb') as f:
|
||||
head = f.read(0x300)
|
||||
except OSError:
|
||||
continue
|
||||
# bzImage: 'HdrS' at 0x202
|
||||
if head[0x202:0x206] != b'HdrS':
|
||||
continue
|
||||
flags = struct.unpack_from('<H', head, 0x236)[0]
|
||||
ver = head[0x206:0x208]
|
||||
t64 = bool(flags & 1)
|
||||
ho32 = bool(flags & 4)
|
||||
ho64 = bool(flags & 8)
|
||||
rows.append((os.path.basename(os.path.dirname(p)), os.path.basename(p),
|
||||
os.path.getsize(p), ver[0], ver[1], t64, ho32, ho64))
|
||||
|
||||
print('%-12s %-22s %10s %6s %-6s %-8s %s' % ('product', 'file', 'size', 'kver', '64bit', 'handov32', 'handov64'))
|
||||
for r in rows:
|
||||
print('%-12s %-22s %10d %3d.%d %-6s %-8s %s' % (
|
||||
r[0], r[1], r[2], r[3], r[4],
|
||||
'yes' if r[5] else 'no', 'YES' if r[6] else '-', 'yes' if r[7] else '-'))
|
||||
print()
|
||||
print('candidates for 32-bit UEFI:', [r[0] for r in rows if r[6] or not r[5]] or 'none')
|
||||
EOF
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
# Local repro of the legacy (BIOS) boot of Acronis True Image 2025.
|
||||
set -e
|
||||
SRC=/path/to/pf/acronis/Acronis_Boot_Disk_2024.iso
|
||||
W=/root/acrtest
|
||||
rm -rf "$W"; mkdir -p "$W/tree/ATI2025" "$W/tree/boot/grub/i386-pc"
|
||||
|
||||
7z e -y -o"$W/tree/ATI2025" "$SRC" 'ACR/ATI2025/dat10.dat' 'ACR/ATI2025/dat11.dat' 'ACR/ATI2025/dat12.dat' >/dev/null
|
||||
cp -f /usr/lib/grub/i386-pc/*.mod /usr/lib/grub/i386-pc/*.lst "$W/tree/boot/grub/i386-pc/" 2>/dev/null || true
|
||||
|
||||
cat > "$W/tree/boot/grub/grub.cfg" <<'EOF'
|
||||
set timeout=0
|
||||
set default=0
|
||||
menuentry "Acronis" {
|
||||
linux /ATI2025/dat10.dat vga=791 mbrcrcs=on force_modules=usbhid lang=ru quiet console=ttyS0,115200
|
||||
initrd /ATI2025/dat11.dat /ATI2025/dat12.dat
|
||||
}
|
||||
EOF
|
||||
|
||||
grub-mkrescue -o "$W/test.iso" "$W/tree" >/tmp/mk_test.log 2>&1
|
||||
xorriso -osirrox on -indev "$W/test.iso" -extract /boot/grub/i386-pc/eltorito.img "$W/tree/boot/grub/i386-pc/eltorito.img" >/dev/null 2>&1
|
||||
xorriso -as mkisofs -o "$W/final.iso" \
|
||||
-b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
"$W/tree" >/tmp/xor_test.log 2>&1
|
||||
ls -l "$W/final.iso"
|
||||
|
||||
echo "=== booting in QEMU (BIOS), 90s max"
|
||||
timeout 90 qemu-system-x86_64 -m 4096 -cdrom "$W/final.iso" -boot d \
|
||||
-display none -serial stdio -no-reboot 2>&1 | tail -60 || true
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
for f in ADD ABA; do
|
||||
rm -f /tmp/e.img
|
||||
xorriso -osirrox on -indev "/mnt/f/efi/Paravis/Utilities/$f" -extract /efi.img /tmp/e.img >/dev/null 2>&1
|
||||
printf ' %-4s ' "$f"
|
||||
mdir -i /tmp/e.img ::/EFI/BOOT 2>/dev/null | grep -oE 'BOOT(IA32|X64) +EFI +[0-9]+' | tr '\n' ' '
|
||||
echo
|
||||
done
|
||||
echo "--- el torito:"
|
||||
for f in ADD ABA; do
|
||||
echo " $f:"
|
||||
xorriso -indev "/mnt/f/efi/Paravis/Utilities/$f" -report_el_torito plain 2>&1 | grep -E 'El Torito boot img' | sed 's/^/ /'
|
||||
done
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
for f in ADD ABA; do
|
||||
iso="/mnt/f/efi/Paravis/Utilities/$f"
|
||||
echo "== $f"
|
||||
xorriso -indev "$iso" -report_el_torito plain 2>/dev/null | grep -E 'El Torito boot img' | sed 's/^/ /'
|
||||
printf ' modules: '
|
||||
7z l -ba "$iso" 2>/dev/null | grep -c 'boot/grub/i386-pc/.*\.mod'
|
||||
printf ' kernel dirs: '
|
||||
7z l -ba "$iso" 2>/dev/null | grep -oE '(ATI2025|ADDH12)/[a-z0-9]+\.dat' | tr '\n' ' '
|
||||
echo
|
||||
done
|
||||
Reference in new issue
Block a user