#!/bin/bash set -e echo "Checking binary $1" grub-file --is-x86-multiboot2 $1 echo "$1 is a valid mb2 binary"