#!/bin/bash W=/tmp/insp rm -rf "$W"; mkdir -p "$W" echo "=== memtest.efi:" python3 - <<'EOF' import struct d=open('/mnt/f/EFI/Boot/memtest.efi','rb').read() pe=struct.unpack_from(' krd.cpio 2>/dev/null || cp /mnt/f/efi/Paravis/KRD/initrd.xz krd.cpio file krd.cpio mkdir -p krd && ( cd krd && cpio -idm --quiet < ../krd.cpio 2>/dev/null || true ) ls krd | head -20 echo "--- init (first 80 lines):" sed -n '1,80p' krd/init 2>/dev/null