#!/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('