#!/bin/sh PATH=$PATH:/usr/sbin:/sbin target="$1" platform="$2" cfgfile="$3" pvfile=grub-${target}-${platform}.bin grub2-mkstandalone -v --compress=xz --locale-dir=/usr/share/locale --locales="en@quot" --fonts="unicode" \ --modules="linux" --themes="" \ -O ${target}-${platform} -o $pvfile "/boot/grub/grub.cfg=${cfgfile}" exit 0