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