]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
client: Update to support new "presentation" mode presentation-mode 318/head
authorRay Strode <rstrode@redhat.com>
Mon, 6 May 2024 18:08:53 +0000 (14:08 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 7 May 2024 02:37:05 +0000 (22:37 -0400)
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

index 82f7d9205482b411cd33cbfa4a2b36c6422f4dfd..9b3fbd902256f77310cbfcd3ed44c25e83b8a4dc 100644 (file)
@@ -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,