Merge pull request #1834 from dbungert/fix-target-log-dir

shutdown: fix perms on /target/var/log/installer
This commit is contained in:
Dan Bungert 2023-10-10 16:10:48 -06:00 committed by GitHub
commit 8eddf7fc5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ class ShutdownController(SubiquityController):
await self.app.command_runner.run(
["cp", "-aT", "/var/log/installer", target_logs]
)
# Close the permissions from group writes on the target.
set_log_perms(target_logs, group_write=False)
# explicitly setting the expected permissions on this dir
set_log_perms(target_logs, mode=0o770, group="adm")
journal_txt = os.path.join(target_logs, "installer-journal.txt")
try: