14 lines
474 B
Bash
14 lines
474 B
Bash
#!/bin/bash
|
|
set -e
|
|
cd /tmp
|
|
rm -rf ag ag.tgz
|
|
curl -sSL --max-time 600 "https://github.com/a1ive/grub/archive/refs/heads/master.tar.gz" -o ag.tgz
|
|
echo "size: $(stat -c %s ag.tgz)"
|
|
tar -xzf ag.tgz
|
|
D=$(find /tmp -maxdepth 1 -type d -name 'grub-*' | head -1)
|
|
echo "src dir: $D"
|
|
echo "=== wimboot command definition:"
|
|
grep -rn 'grub_register_extcmd.*wimboot\|"wimboot"' "$D/grub-core" | head -10
|
|
echo "=== files:"
|
|
find "$D/grub-core" -name '*wimboot*' -o -name '*wim*' | head -20
|