Skip to content

Commit

Permalink
do not copy logs to target when installing core
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhudson committed Aug 2, 2023
1 parent f088fa2 commit abec832
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 abec832

Please sign in to comment.