#! /bin/bash # Custom menu to ensure that we boot correctly # from local disk on UEFI # https://github.com/openSUSE/agama/issues/1609 # KIWI config dst="$1" if [ ! -d "$dst" ] ; then echo "fix_bootconfig.aarch64: image dir \"$dst\" not found" exit 1 fi # KIWI config which should normally be inherited # from a parent process in our case xorriso # but that's not the case. test -f $dst/.profile && . $dst/.profile # # Create grub.cfg # cat >$dst/boot/grub2/grub.cfg <