Skip to content

Commit

Permalink
remove_live_image: do not remove kernel/initramfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Hecko committed Aug 9, 2024
1 parent 2b2a577 commit db34d3d
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,3 @@ def process(self):
os.unlink(artifacts.squashfs)
except (FileNotFoundError, PermissionError):
api.current_logger().warning('Cannot remove %s', artifacts.squashfs)

# upgrade vmlinuz/initramfs have already been removed by another actor
# proceed anyway
try:
os.unlink(artifacts.kernel)
os.unlink(artifacts.initramfs)
except (FileNotFoundError, PermissionError):
pass

0 comments on commit db34d3d

Please sign in to comment.