Support a fonts directory, and make *.pf2 optional (grub, x86)

This commit is contained in:
Arnaud Rebillout 2024-02-01 21:31:15 +00:00 committed by Steve McIntyre
parent b64c13c1db
commit 88b3414bb0
1 changed files with 7 additions and 1 deletions

View File

@ -444,7 +444,13 @@ if [ -d boot$N/isolinux/grub-$ARCH ] && [ $BOOT_EFI -ne 0 ] ; then
fi;;
esac
cp -a $dir/*-efi $dir/*.pf2 $dir/*.cfg $CDDIR/boot/grub
cp -a $dir/*-efi $dir/*.cfg $CDDIR/boot/grub
if ls $dir/*.pf2 >/dev/null 2>&1; then
cp -a $dir/*.pf2 $CDDIR/boot/grub
fi
if [ -e $dir/fonts/ ]; then
cp -a $dir/fonts/ $CDDIR/boot/grub
fi
if [ $SB = 1 ]; then
echo " Removing non-SB grub files and config for $grub_arch"
rm -f $CDDIR/boot/grub/*-efi/*.mod $CDDIR/boot/grub/*-efi/*.lst