]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
details: Suppress kernel's own kmsg console output
authorAdrian Vovk <adrianvovk@gmail.com>
Fri, 9 May 2025 19:17:48 +0000 (15:17 -0400)
committerAdrian Vovk <adrianvovk@gmail.com>
Mon, 12 May 2025 20:05:42 +0000 (16:05 -0400)
Plymouth forwards /dev/console and /dev/kmsg to all consoles (and to the
graphical splash). With the details plugin, we would do this without
suppressing the kernel's own output first. This would lead to duplicate
log entries

src/plugins/splash/details/plugin.c

index 9e150b5c44162d16686039dae3ed22c3dd4d5811..c7674fc049f32058c0c415b2cc81a512bd88207d 100644 (file)
@@ -308,6 +308,8 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin,
                                        detach_from_event_loop,
                                        plugin);
 
+        ply_show_new_kernel_messages (false);
+
         if (boot_buffer) {
                 plugin->boot_buffer = boot_buffer;
 
@@ -350,6 +352,8 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
                                                detach_from_event_loop,
                                                plugin);
         detach_from_event_loop (plugin);
+
+        ply_show_new_kernel_messages (true);
 }
 
 static void