diff options
Diffstat (limited to 'scripts/vyatta-grub-setup')
-rwxr-xr-x | scripts/vyatta-grub-setup | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/vyatta-grub-setup b/scripts/vyatta-grub-setup index ea4dc905..beea8e65 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,12 @@ fi echo -e "serial --unit=0 --speed=9600" echo "terminal_output --append serial" + # EFI needs a few extra modules + if [ "$EFI_PARTITION" -eq "1" ]; 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}'` |