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