# select a supported bootloader # prefer grub2 if [[ ${DEFAULT_BOOTLOADER} = grub2 ]] || [ -x ${INSTALLROOT}/usr/sbin/grub-mkconfig ] then echo "Using grub2" >&2 source ${INSTALLER_LIBDIR}/functions/grub2.sh fi if [[ ${DEFAULT_BOOTLOADER} = grub ]] || [ -x ${INSTALLROOT}/sbin/grub ] then echo "Using grub1" >&2 source ${INSTALLER_LIBDIR}/functions/grub.sh fi