Files
Ventoy/build-scripts/experiments/get-a1ive-grub.sh
T

16 lines
623 B
Bash

#!/bin/bash
set -e
OUT=/path/to/pf/grub2-a1ive
rm -rf "$OUT" /tmp/g2; mkdir -p "$OUT" /tmp/g2
curl -sSL --max-time 600 "https://github.com/a1ive/grub/releases/download/latest/grub2-latest.tar.gz" -o /tmp/g2.tgz
echo "size: $(stat -c %s /tmp/g2.tgz)"
file /tmp/g2.tgz
tar -xzf /tmp/g2.tgz -C /tmp/g2
echo "=== top level:"
find /tmp/g2 -maxdepth 2 -type d | head -20
echo "=== efi builds:"
find /tmp/g2 -maxdepth 2 -iname '*x86_64*' -o -maxdepth 2 -iname '*efi*' | head -20
echo "=== grub-mkimage / .mod presence:"
find /tmp/g2 -name 'grub-mkimage*' | head -5
find /tmp/g2 -name 'wimboot.mod' -o -name 'ntboot.mod' | head -5