agama/live/config-cdroot/fix_bootconfig.ppc64le
2026-08-18 14:54:46 +02:00

58 lines
1.3 KiB
Bash
Executable file

#! /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 <<XXX
# Agama generated grub2 config file
gfxmode=auto
set default=0
insmod gettext
if sleep --interruptible 0 ; then
timeout=60
fi
menuentry "Install $label" --class os --unrestricted {
echo 'Loading kernel...'
linux /boot/ppc64le/loader/linux splash=silent plymouth.ignore-serial-consoles
echo 'Loading initrd...'
initrd /boot/ppc64le/loader/initrd
}
menuentry "Check Installation Medium" --class os --unrestricted {
echo 'Loading kernel...'
linux /boot/ppc64le/loader/linux mediacheck=1 plymouth.enable=0
echo 'Loading initrd...'
initrd /boot/ppc64le/loader/initrd
}
menuentry "Rescue System" --class os --unrestricted {
echo 'Loading kernel...'
linux /boot/ppc64le/loader/linux $RESCUE_SYSTEM_BOOT_SETTINGS plymouth.ignore-serial-consoles
echo 'Loading initrd...'
initrd /boot/ppc64le/loader/initrd
}
XXX