File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 263
263
# Install grub
264
264
install_grub
265
265
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
268
270
269
271
#
270
272
# Only start the mdadm daemon if we have the root filesystem running
Original file line number Diff line number Diff line change 163
163
fi
164
164
165
165
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
167
171
uuid_root_md=` /sbin/tune2fs -l /dev/md${ROOT_PARTITION# md} | grep UUID | awk ' {print $3}' `
168
172
echo " "
169
173
echo -e " insmod part_msdos"
You can’t perform that action at this time.
0 commit comments