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,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
|
||||
Reference in new issue
Block a user