Add check create boot efivars

master3.3
Mike Hiretsky 11 years ago
parent 1573445199
commit e571c9461e

@ -393,6 +393,15 @@ class Install(color_print):
*grubParams, stderr=STDOUT,envdict=os.environ)
if grubProcess.failed():
raise DistributiveError(_("Failed to install the bootloader"))
efiBootMgr = varsShare().getProgPath('/usr/sbin/efibootmgr')
dmesg = varsShare().getProgPath('/bin/dmesg')
if efiBootMgr and dmesg:
if not re.search('Boot.*calculate',
process(efiBootMgr).read(),re.M) and \
re.search('efivars.*set_variable.*failed',
process(dmesg).read(),re.M):
raise DistributiveError(
_("Failed to create the UEFI boot record"))
else:
for bootPath in ("/boot","/"):
bootDisk = self.clVars.Select("os_install_disk_dev",

Loading…
Cancel
Save