Skip to content

Commit

Permalink
shutdown: fix owner on cloud-init logs
Browse files Browse the repository at this point in the history
These have owner syslog at install time, but that is uid remapped on the
target system which may end up with a different owning user.
  • Loading branch information
dbungert committed Oct 4, 2023
1 parent d3debfc commit ab0af63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subiquity/server/controllers/shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ async def copy_cloud_init_logs(self, target_logs):
for logfile in cloudinit_logs:
if not os.path.exists(logfile):
continue
set_log_perms(logfile)
await self.app.command_runner.run(
["cp", "-a", logfile, "/var/log/installer"]
)
Expand Down

0 comments on commit ab0af63

Please sign in to comment.