From abec8322320695b77249d96b65e7866c17c2211e Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 2 Aug 2023 20:51:28 +1200 Subject: [PATCH] do not copy logs to target when installing core --- subiquity/server/controllers/shutdown.py | 3 +++ 1 file changed, 3 insertions(+) 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)