From a7731785aeb928ace93a176a9c574267a00836e4 Mon Sep 17 00:00:00 2001 From: Kroy Date: Mon, 5 Nov 2018 15:43:19 -0600 Subject: T955: Integrating EFI into the installer --- scripts/vyatta-grub-setup | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/vyatta-grub-setup') diff --git a/scripts/vyatta-grub-setup b/scripts/vyatta-grub-setup index ea4dc905..3959547d 100755 --- a/scripts/vyatta-grub-setup +++ b/scripts/vyatta-grub-setup @@ -54,6 +54,7 @@ shift `expr $OPTIND - 1` ROOT_PARTITION="$1" GRUB_OPTIONS="$2" ROOTFSDIR="$3" +EFI_PARTITION="$4" [ "$ROOT_PARTITION" ] || exit 1 @@ -155,6 +156,11 @@ fi echo -e "serial --unit=0 --speed=9600" echo "terminal_output --append serial" + if [ -b /dev/$EFI_PARTITION ]; then + echo -e "insmod efi_gop" + echo -e "insmod efi_uga" + fi + if [ ${ROOT_PARTITION:0:2} = "md" ]; then uuid_root_disk=`/sbin/tune2fs -l /dev/${root_disk}1 | grep UUID | awk '{print $3}'` uuid_root_md=`/sbin/tune2fs -l /dev/md${ROOT_PARTITION#md} | grep UUID | awk '{print $3}'` -- cgit v1.2.3