Skip to content

Commit

Permalink
restore: fix access to ESP partition
Browse files Browse the repository at this point in the history
Commit 29c7bb5 introduced assumption
that `mounts` has a `esp` key, which was not the case when called from
`restoreFromBackup`.  This makes sure the key is created.

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Jul 3, 2024
1 parent 2701315 commit 9b63a88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def restore_partitions():
# restore boot loader
if boot_config.src_fmt == 'grub2':
if efi_boot:
mounts['esp'] = esp
backend.setEfiBootEntry(mounts, disk_device, boot_partnum, constants.INSTALL_TYPE_RESTORE, branding)
else:
if location == constants.BOOT_LOCATION_MBR:
Expand Down

0 comments on commit 9b63a88

Please sign in to comment.