Skip to content

Commit

Permalink
Merge pull request #1749 from mwhudson/no-logs-for-core
Browse files Browse the repository at this point in the history
do not copy logs to target when installing core
  • Loading branch information
mwhudson authored Aug 2, 2023
2 parents ff0a98f + abec832 commit d77ac16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subiquity/server/controllers/shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d77ac16

Please sign in to comment.