Skip to content

Commit 6c2d7fc

Browse files
committed
restore: fix access to ESP partition
Commit 29c7bb5 introduced assumption that `mounts` has a `exp` key, which was not the case when called from `restoreFromBackup`. This makes sure the key is created. Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
1 parent 2701315 commit 6c2d7fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

restore.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def restore_partitions():
214214
# restore boot loader
215215
if boot_config.src_fmt == 'grub2':
216216
if efi_boot:
217+
mounts['esp'] = esp
217218
backend.setEfiBootEntry(mounts, disk_device, boot_partnum, constants.INSTALL_TYPE_RESTORE, branding)
218219
else:
219220
if location == constants.BOOT_LOCATION_MBR:

0 commit comments

Comments
 (0)