shutdown: make sure we capture the output of journalctl -b
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
parent
6a4537277d
commit
34242846db
|
@ -120,7 +120,10 @@ class ShutdownController(SubiquityController):
|
||||||
try:
|
try:
|
||||||
with open_perms(journal_txt) as output:
|
with open_perms(journal_txt) as output:
|
||||||
await self.app.command_runner.run(
|
await self.app.command_runner.run(
|
||||||
["journalctl", "-b"], stdout=output, stderr=subprocess.STDOUT
|
["journalctl", "-b"],
|
||||||
|
capture=True,
|
||||||
|
stdout=output,
|
||||||
|
stderr=subprocess.STDOUT,
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
log.exception("saving journal failed")
|
log.exception("saving journal failed")
|
||||||
|
|
Loading…
Reference in New Issue