Skip to content

Commit

Permalink
fixup! feat(arm,bootloader,efi): use separate BLS directory for upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Hecko committed Jan 22, 2025
1 parent 5076c9f commit ee31e04
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,11 @@ def modify_our_grubenv_to_have_separate_blsdir(efi_info):
raise StopActorExecutionError('Failed to set up bootloader for the upgrade.')

# The 'blsdir' grubenv variable specifies location of bls directory relative to /boot
if os.path.exists(efi_info.upgrade_bls_dir):
msg = 'The {} directory exists, probably a left-over from previous executions. Removing.'
api.current_logger().debug(msg.format(efi_info.upgrade_bls_dir))
shutil.rmtree(efi_info.upgrade_bls_dir)

os.makedirs(efi_info.upgrade_bls_dir)
api.current_logger().debug('Successfully created upgrade BLS directory: {}'.format(efi_info.upgrade_bls_dir))

Expand Down

0 comments on commit ee31e04

Please sign in to comment.