#! /bin/bash # Custom menu to ensure that we boot correctly # from local disk on UEFI # https://github.com/openSUSE/agama/issues/1609 # KIWI config set -e dst="$1" if [ ! -d "$dst" ]; then echo "fix_bootconfig.x86_64: 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 arch=$(uname -m) profile=$(echo "$kiwi_profiles" | tr "_" " ") label="$profile ($arch)" if [ -d "$dst/boot/grub2/themes/SLE" ]; then theme="SLE" else theme="openSUSE" fi # # Create grub.cfg # cat >$dst/boot/grub2/grub.cfg <