From a4e55e633137e558ce02da48b4ad16acffbcf1a7 Mon Sep 17 00:00:00 2001 From: Kroy Date: Sat, 1 Dec 2018 17:36:42 -0600 Subject: EFI Cleanup. Adding removable option to grub-install --- scripts/vyatta-grub-setup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/vyatta-grub-setup') diff --git a/scripts/vyatta-grub-setup b/scripts/vyatta-grub-setup index beea8e65..2b7197c1 100755 --- a/scripts/vyatta-grub-setup +++ b/scripts/vyatta-grub-setup @@ -54,7 +54,6 @@ shift `expr $OPTIND - 1` ROOT_PARTITION="$1" GRUB_OPTIONS="$2" ROOTFSDIR="$3" -EFI_PARTITION="$4" [ "$ROOT_PARTITION" ] || exit 1 @@ -157,7 +156,7 @@ fi echo "terminal_output --append serial" # EFI needs a few extra modules - if [ "$EFI_PARTITION" -eq "1" ]; then + if [ -d /sys/firmware/efi ]; then echo -e "insmod efi_gop" echo -e "insmod efi_uga" fi -- cgit v1.2.3