diff --git a/subiquity/server/controllers/shutdown.py b/subiquity/server/controllers/shutdown.py index 804c49b0d..a60806012 100644 --- a/subiquity/server/controllers/shutdown.py +++ b/subiquity/server/controllers/shutdown.py @@ -89,6 +89,9 @@ async def copy_logs_to_target(self, context): raise PermissionError() if self.app.controllers.Filesystem.reset_partition_only: return + if self.app.base_model.source.current.variant == "core": + # Possibly should copy logs somewhere else in this case? + return target_logs = os.path.join(self.app.base_model.target, "var/log/installer") if self.opts.dry_run: os.makedirs(target_logs, exist_ok=True)