summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2019-06-18 13:55:44 +0200
committerUnicronNL <kim.sidney@gmail.com>2019-06-18 19:43:16 +0200
commite67216080c845df37e08368fd5bcb56fd5074463 (patch)
tree838a42281959f4db9f6c2602919ee464ac5430c8
parentc27a6def32b7c7ec504210c0e5dd78c0f61130d7 (diff)
downloadvyatta-cfg-system-e67216080c845df37e08368fd5bcb56fd5074463.tar.gz
vyatta-cfg-system-e67216080c845df37e08368fd5bcb56fd5074463.zip
[ installer ] T1446: on installing with efi skip the
xen extra checks, they use dmidecode which will not work in efi mode Get the UUID of the correct partition based on the install type (bios/efi)
-rwxr-xr-xscripts/install/install-postinst-new6
-rwxr-xr-xscripts/vyatta-grub-setup6
2 files changed, 9 insertions, 3 deletions
diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new
index ae723627..85eba45f 100755
--- a/scripts/install/install-postinst-new
+++ b/scripts/install/install-postinst-new
@@ -263,8 +263,10 @@ fi
# Install grub
install_grub
-# Perform additional configuration if installing on Xen
-check_for_xen_extras
+if [ ! -d /sys/firmware/efi ]; then
+ # Perform additional configuration if installing on Xen
+ check_for_xen_extras
+fi
#
# Only start the mdadm daemon if we have the root filesystem running
diff --git a/scripts/vyatta-grub-setup b/scripts/vyatta-grub-setup
index 8f0734ed..b44f332e 100755
--- a/scripts/vyatta-grub-setup
+++ b/scripts/vyatta-grub-setup
@@ -163,7 +163,11 @@ fi
fi
if [ ${ROOT_PARTITION:0:2} = "md" ]; then
- uuid_root_disk=`/sbin/tune2fs -l /dev/${root_disk}1 | grep UUID | awk '{print $3}'`
+ if [ -d /sys/firmware/efi ]; then
+ uuid_root_disk=`/sbin/tune2fs -l /dev/${root_disk}3 | grep UUID | awk '{print $3}'`
+ else
+ uuid_root_disk=`/sbin/tune2fs -l /dev/${root_disk}1 | grep UUID | awk '{print $3}'`
+ fi
uuid_root_md=`/sbin/tune2fs -l /dev/md${ROOT_PARTITION#md} | grep UUID | awk '{print $3}'`
echo ""
echo -e "insmod part_msdos"