Add new reboot and system-upgrade modes

System Internals / Plymouth - Hans de Goede [redhat.com] - 26 February 2019 16:01 EST

Some themes show certain text strings to the user depending on the mode, see e.g. the shutdown vs reboot mockups of: https://wiki.gnome.org/Design/OS/BootProgress

Besides during shutdown vs reboot, we also want different theming for installing offline (security) updates versus doing an offline OS upgrade.

To make this possible this commit adds new reboot and system-upgrade modes which can be specified either when starting plymouthd, or through plymouth change-mode --.

a42915c Add new reboot and system-upgrade modes
src/client/plymouth.c | 48 ++++++++++++++-----------
src/libply-splash-core/ply-boot-splash-plugin.h | 4 ++-
src/main.c | 17 ++++++++-
src/plugins/splash/fade-throbber/plugin.c | 6 ++--
src/plugins/splash/script/script-lib-plymouth.c | 6 ++++
src/plugins/splash/text/plugin.c | 3 +-
src/plugins/splash/throbgress/plugin.c | 12 ++++---
src/plugins/splash/tribar/plugin.c | 3 +-
src/plugins/splash/two-step/plugin.c | 16 ++++++---
systemd-units/plymouth-reboot.service.in | 2 +-
themes/bgrt/bgrt.plymouth.in | 10 ++++++
themes/spinner/spinner.plymouth.in | 7 ++++
12 files changed, 99 insertions(+), 35 deletions(-)

Upstream: cgit.freedesktop.org


  • Share