Files
Ventoy/build-scripts/experiments/g2-inspect.sh
T

22 lines
515 B
Bash

#!/bin/bash
# persist the a1ive grub tree on D: and inspect wimboot/ntboot usage
set -e
SRC=/tmp/g2/grub
OUT=/path/to/pf/grub2-a1ive
if [ -d "$SRC" ]; then
echo "--- copying release tree to $OUT"
rm -rf "$OUT"; mkdir -p "$OUT"
cp -a "$SRC" "$OUT/grub"
fi
G="$OUT/grub"
ls "$G" | head
for m in wimboot ntboot chain linux; do
echo "=== $m.mod"
if [ -f "$G/x86_64-efi/$m.mod" ]; then
strings -a -n 4 "$G/x86_64-efi/$m.mod" | head -40
else
echo " (no such module)"
fi
done