Skip to content

Commit 444975c

Browse files
committed
[ 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)
1 parent 97985e2 commit 444975c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

scripts/install/install-postinst-new

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ fi
263263
# Install grub
264264
install_grub
265265

266-
# Perform additional configuration if installing on Xen
267-
check_for_xen_extras
266+
if [ ! -d /sys/firmware/efi ]; then
267+
# Perform additional configuration if installing on Xen
268+
check_for_xen_extras
269+
fi
268270

269271
#
270272
# Only start the mdadm daemon if we have the root filesystem running

scripts/vyatta-grub-setup

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,11 @@ fi
163163
fi
164164

165165
if [ ${ROOT_PARTITION:0:2} = "md" ]; then
166-
uuid_root_disk=`/sbin/tune2fs -l /dev/${root_disk}1 | grep UUID | awk '{print $3}'`
166+
if [ -d /sys/firmware/efi ]; then
167+
uuid_root_disk=`/sbin/tune2fs -l /dev/${root_disk}3 | grep UUID | awk '{print $3}'`
168+
else
169+
uuid_root_disk=`/sbin/tune2fs -l /dev/${root_disk}1 | grep UUID | awk '{print $3}'`
170+
fi
167171
uuid_root_md=`/sbin/tune2fs -l /dev/md${ROOT_PARTITION#md} | grep UUID | awk '{print $3}'`
168172
echo ""
169173
echo -e "insmod part_msdos"

0 commit comments

Comments
 (0)