summaryrefslogtreecommitdiff
path: root/scripts/vyatta-grub-setup
diff options
context:
space:
mode:
authorKroy <kroy@kroy.io>2018-12-01 17:36:42 -0600
committerKroy <kroy@kroy.io>2018-12-01 17:36:42 -0600
commita4e55e633137e558ce02da48b4ad16acffbcf1a7 (patch)
tree57432b2404294969e2fd9b6d3f5b2b41dd946e06 /scripts/vyatta-grub-setup
parent0ebc3def62c13a19bcfb8d25ae479235ed376268 (diff)
downloadvyatta-cfg-system-a4e55e633137e558ce02da48b4ad16acffbcf1a7.tar.gz
vyatta-cfg-system-a4e55e633137e558ce02da48b4ad16acffbcf1a7.zip
EFI Cleanup. Adding removable option to grub-install
Diffstat (limited to 'scripts/vyatta-grub-setup')
-rwxr-xr-xscripts/vyatta-grub-setup3
1 files changed, 1 insertions, 2 deletions
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