#! /bin/bash # Custom boot menu. set -e dst="$1" if [ ! -d "$dst" ] ; then echo "fix_bootconfig.ppc64le: 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)" # Create grub.cfg. # cat >$dst/boot/grub2/grub.cfg <