From 25f8a4b4203ca6ab8bc6ce0fccd1d512af67ed9f Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 6 May 2024 14:08:53 -0400 Subject: [PATCH] client: Update to support new "presentation" mode Now that plymouthd supports a presentation mode, it would be good if there was actually a way to turn it on. This commit updates the plymouth client to allow for that. --- src/client/plymouth.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/plymouth.c b/src/client/plymouth.c index 82f7d920..9b3fbd90 100644 --- a/src/client/plymouth.c +++ b/src/client/plymouth.c @@ -812,6 +812,7 @@ on_change_mode_request (state_t *state, bool system_upgrade = false; bool firmware_upgrade = false; bool system_reset = false; + bool presentation = false; const char *mode = NULL; ply_command_parser_get_command_options (state->command_parser, @@ -823,6 +824,7 @@ on_change_mode_request (state_t *state, "system-upgrade", &system_upgrade, "firmware-upgrade", &firmware_upgrade, "system-reset", &system_reset, + "presentation", &presentation, NULL); if (boot_up) @@ -839,6 +841,8 @@ on_change_mode_request (state_t *state, mode = "firmware-upgrade"; else if (system_reset) mode = "system-reset"; + else if (presentation) + mode = "presentation"; if (mode) { ply_boot_client_change_mode (state->client, mode, @@ -936,6 +940,8 @@ main (int argc, PLY_COMMAND_OPTION_TYPE_FLAG, "system-reset", "Resetting the OS and erasing all user data", PLY_COMMAND_OPTION_TYPE_FLAG, + "presentation", "Display static banner without progress indication", + PLY_COMMAND_OPTION_TYPE_FLAG, NULL); ply_command_parser_add_command (state.command_parser, -- 2.47.2