From db34d3d230154a2225407d76cf8857ded484134a Mon Sep 17 00:00:00 2001 From: Michal Hecko Date: Fri, 9 Aug 2024 14:07:03 +0200 Subject: [PATCH] remove_live_image: do not remove kernel/initramfs --- .../common/actors/livemode/removeliveimage/actor.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/repos/system_upgrade/common/actors/livemode/removeliveimage/actor.py b/repos/system_upgrade/common/actors/livemode/removeliveimage/actor.py index bff9206b14..daabd73c54 100644 --- a/repos/system_upgrade/common/actors/livemode/removeliveimage/actor.py +++ b/repos/system_upgrade/common/actors/livemode/removeliveimage/actor.py @@ -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