|
|
|
@ -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",
|
|
|
|
|