diff options
author | Kroy <kroy@kroy.io> | 2018-11-05 15:43:19 -0600 |
---|---|---|
committer | Kroy <kroy@kroy.io> | 2018-11-05 15:43:19 -0600 |
commit | a7731785aeb928ace93a176a9c574267a00836e4 (patch) | |
tree | 8ca0e77a6f4c1123d162568e7b9d284684b20317 /scripts/vyatta-grub-setup | |
parent | 018860f21eb4151df5e0b719ad9b66331786ac4e (diff) | |
download | vyatta-cfg-system-a7731785aeb928ace93a176a9c574267a00836e4.tar.gz vyatta-cfg-system-a7731785aeb928ace93a176a9c574267a00836e4.zip |
T955: Integrating EFI into the installer
Diffstat (limited to 'scripts/vyatta-grub-setup')
-rwxr-xr-x | scripts/vyatta-grub-setup | 6 |
1 files changed, 6 insertions, 0 deletions
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}'` |