]> git.ipfire.org Git - thirdparty/plymouth.git/commit
main: Dump debug log to plymouth-shutdown-debug.log on shutdown/reboot
authorHans de Goede <hdegoede@redhat.com>
Wed, 31 Mar 2021 12:58:11 +0000 (14:58 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 6 Apr 2021 11:15:05 +0000 (13:15 +0200)
commita4bb4c146b8461d872136684575ba15c8ab4c8c8
tree09e043d607a369ebe6fd812f01863d644b947b11
parenteb5227b47485183174f98807e15d224ecde25217
main: Dump debug log to plymouth-shutdown-debug.log on shutdown/reboot

When working on plymouth I always have "plymouth.debug=stream:/dev/null"
on the kernel commandline. This enables tracing without logging anything
to the console and causes the entire trace to be logged to
/var/log/plymouth-debug.log when plymouth quits.

This is very useful for debugging (non crash) issues with plymouth at boot.
With the recent "main: Cleanly quit on SIGTERM" change plymouth will now
also write a trace log to /var/log/plymouth-debug.log on shutdown/reboot,
but this will be overwritten again on boot by the boot log.

This commit changes the default debug_buffer_path value from:
/var/log/plymouth-debug.log to /var/log/plymouth-shutdown-debug.log
when in shutdown or reboot mode so that it does not get overwritten
by the debug-log written at boot.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/main.c