From 13ef90fa2b51baedf9efa4299eb4d2c128b6f191 Mon Sep 17 00:00:00 2001 From: Kroy Date: Tue, 6 Nov 2018 10:29:42 -0600 Subject: T955: Integrating EFI into the installer --- scripts/install/install-image | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'scripts/install/install-image') diff --git a/scripts/install/install-image b/scripts/install/install-image index f99d4ce8..dbdd5901 100755 --- a/scripts/install/install-image +++ b/scripts/install/install-image @@ -202,7 +202,6 @@ install_new () { local root_part=$1 local inst_drv=$2 - local efi_part=$3 if [ ! -e "/dev/$root_part" ] || [ ! -e "/dev/$inst_drv" ]; then fail_exit "Invalid drive/partition ($inst_drv and $root_part)." @@ -215,7 +214,7 @@ install_new () # postinst operations if ! /opt/vyatta/sbin/install-postinst-new \ - "$inst_drv" "$root_part" union "$efi_part"; then + "$inst_drv" "$root_part" union; then exit 1 fi } @@ -292,14 +291,13 @@ fi root_part_type='' root_part='' inst_drv='' -efi_part='' -eval "read root_part_type root_part inst_drv efi_part <$PART_FILE" >&/dev/null +eval "read root_part_type root_part inst_drv <$PART_FILE" >&/dev/null rm -f $PART_FILE >&/dev/null # handle different types case "$root_part_type" in new) - install_new "$root_part" "$inst_drv" "$efi_part" + install_new "$root_part" "$inst_drv" exit 0 ;; union|old) -- cgit v1.2.3