21 lines
631 B
Bash
21 lines
631 B
Bash
#!/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
|