#!/bin/bash set -e K=/path/to/pf/Ventoy/keys D=/path/to/pf/ParavisGrub G=/mnt/f/efi/Paravis/Boot/grub2 echo "=== 1. memtest86+ 9.10 (built from git) -> signed" if [ -f /tmp/mt86p/build/x86_64/mt86plus ]; then cp -f /tmp/mt86p/build/x86_64/mt86plus /tmp/mt86p/mt86plus.efi sbsign --key "$K/ventoy.key" --cert "$K/ventoy.crt" --output "$G/apps/memtest86p.efi" /tmp/mt86p/mt86plus.efi >/dev/null sbverify --cert "$K/ventoy.crt" "$G/apps/memtest86p.efi" ls -l "$G/apps/memtest86p.efi" else echo " !! build missing" fi rm -f "$G/apps/memtest86.efi" echo "=== 2. generate menu files" python3 "$D/gen_menu.py" "$D" cp -f "$D/grub.cfg" "$G/grub.cfg" mkdir -p "$G/menu" cp -f "$D"/menu/*.cfg "$G/menu/" ls -l "$G" "$G/menu" "$G/apps"