Skip to content

Commit

Permalink
feat(bootstrap): obtain read permissions for subiquity log files
Browse files Browse the repository at this point in the history
  • Loading branch information
d-loose committed Jun 18, 2024
1 parent 974339f commit 230a4f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/ubuntu_bootstrap/lib/installer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ Future<void> runInstallerApp(
tryRegisterService<AccessibilityService>(GnomeAccessibilityService.new);
tryRegisterService<ActiveDirectoryService>(
() => SubiquityActiveDirectoryService(getService<SubiquityClient>()));
tryRegisterService<ApportService>(() => ApportService(liveRun: liveRun));
tryRegisterService<ApportService>(() => ApportService(
liveRun: liveRun,
preCommands: [
// Make sure the log files are readable by the live session user.
(cmd: 'sudo', args: ['chmod', 'a+r', '/var/log/installer/*']),
],
));
tryRegisterServiceInstance<ArgResults>(options);
tryRegisterService<ConfigService>(ConfigService.new);
if (liveRun) tryRegisterService<DesktopService>(GnomeService.new);
Expand Down

0 comments on commit 230a4f8

Please sign in to comment.