installer: suppress kernel warning/info/debug messages

Message ID 20251219143600.2585542-1-badrikesh.prusty@siemens.com
State Superseded, archived
Headers show
Series installer: suppress kernel warning/info/debug messages | expand

Commit Message

Badrikesh Prusty Dec. 19, 2025, 2:36 p.m. UTC
Lower the kernel log level to 3 to suppress warning, notice, info,
and debug messages on the console.
This prevents audit and driver messages from cluttering the screen
while keeping critical errors and systemd service status output
visible, resulting in a cleaner installer UI.

Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
---
 meta-isar/recipes-core/images/isar-image-installer.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Florian Bezdeka Dec. 22, 2025, 10:50 p.m. UTC | #1
On Fri, 2025-12-19 at 09:36 -0500, 'Badrikesh Prusty' via isar-users
wrote:
> Lower the kernel log level to 3 to suppress warning, notice, info,
> and debug messages on the console.
> This prevents audit and driver messages from cluttering the screen
> while keeping critical errors and systemd service status output
> visible, resulting in a cleaner installer UI.

Hiding warnings is not a good idea. If something is wrong on the target
the user should know. It will not be the first time that a problem is
hidden (and comes back in "urgent mode") just because someone decided to
suppress warnings.

> 
> Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
> ---
>  meta-isar/recipes-core/images/isar-image-installer.bb | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta-isar/recipes-core/images/isar-image-installer.bb b/meta-isar/recipes-core/images/isar-image-installer.bb
> index 3511f3f6..fde81a19 100644
> --- a/meta-isar/recipes-core/images/isar-image-installer.bb
> +++ b/meta-isar/recipes-core/images/isar-image-installer.bb
> @@ -11,7 +11,8 @@ DESCRIPTION = "Example of a ISAR based Installer Image"
>  INSTALLER_WKS_FILE ??= "installer-efi.wks.in"
>  WKS_FILE = "${INSTALLER_WKS_FILE}"
>  
> -ADDITIONAL_KERNEL_CMDLINE ??= ""
> +# Hide kernel warning/info/debug messages
> +ADDITIONAL_KERNEL_CMDLINE ??= "loglevel=3"
>  
>  OVERRIDES .= "${@':unattended-installer' if bb.utils.to_boolean(d.getVar('INSTALLER_UNATTENDED')) else ''}"
>  ADDITIONAL_KERNEL_CMDLINE:append:unattended-installer = " \
> -- 
> 2.47.3
> 
> -- 
> You received this message because you are subscribed to the Google Groups "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/isar-users/20251219143600.2585542-1-badrikesh.prusty%40siemens.com.
Badrikesh Prusty Dec. 23, 2025, 2:12 a.m. UTC | #2
Hi,

Agreed, hiding warning is a bad idea. I will increase loglevel to 4 to show 
the warning messages as well and send patch v2.

Thanks,
Badrikesh

On Tuesday, December 23, 2025 at 4:20:44 AM UTC+5:30 Florian Bezdeka wrote:

> On Fri, 2025-12-19 at 09:36 -0500, 'Badrikesh Prusty' via isar-users
> wrote:
> > Lower the kernel log level to 3 to suppress warning, notice, info,
> > and debug messages on the console.
> > This prevents audit and driver messages from cluttering the screen
> > while keeping critical errors and systemd service status output
> > visible, resulting in a cleaner installer UI.
>
> Hiding warnings is not a good idea. If something is wrong on the target
> the user should know. It will not be the first time that a problem is
> hidden (and comes back in "urgent mode") just because someone decided to
> suppress warnings.
>
> > 
> > Signed-off-by: Badrikesh Prusty <badrikes...@siemens.com>
> > ---
> > meta-isar/recipes-core/images/isar-image-installer.bb | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/meta-isar/recipes-core/images/isar-image-installer.bb 
> b/meta-isar/recipes-core/images/isar-image-installer.bb
> > index 3511f3f6..fde81a19 100644
> > --- a/meta-isar/recipes-core/images/isar-image-installer.bb
> > +++ b/meta-isar/recipes-core/images/isar-image-installer.bb
> > @@ -11,7 +11,8 @@ DESCRIPTION = "Example of a ISAR based Installer Image"
> > INSTALLER_WKS_FILE ??= "installer-efi.wks.in"
> > WKS_FILE = "${INSTALLER_WKS_FILE}"
> > 
> > -ADDITIONAL_KERNEL_CMDLINE ??= ""
> > +# Hide kernel warning/info/debug messages
> > +ADDITIONAL_KERNEL_CMDLINE ??= "loglevel=3"
> > 
> > OVERRIDES .= "${@':unattended-installer' if 
> bb.utils.to_boolean(d.getVar('INSTALLER_UNATTENDED')) else ''}"
> > ADDITIONAL_KERNEL_CMDLINE:append:unattended-installer = " \
> > -- 
> > 2.47.3
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "isar-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to isar-users+...@googlegroups.com.
> > To view this discussion visit 
> https://groups.google.com/d/msgid/isar-users/20251219143600.2585542-1-badrikesh.prusty%40siemens.com
> .
>
Badrikesh Prusty Dec. 23, 2025, 2:17 a.m. UTC | #3
Updated patch link:  [PATCH] installer: suppress kernel info/debug messages 
<https://groups.google.com/g/isar-users/c/NVmi7G1coOE>

On Tuesday, December 23, 2025 at 7:42:16 AM UTC+5:30 Badrikesh Prusty wrote:

> Hi,
>
> Agreed, hiding warning is a bad idea. I will increase loglevel to 4 to 
> show the warning messages as well and send patch v2.
>
> Thanks,
> Badrikesh
>
> On Tuesday, December 23, 2025 at 4:20:44 AM UTC+5:30 Florian Bezdeka wrote:
>
>> On Fri, 2025-12-19 at 09:36 -0500, 'Badrikesh Prusty' via isar-users 
>> wrote: 
>> > Lower the kernel log level to 3 to suppress warning, notice, info, 
>> > and debug messages on the console. 
>> > This prevents audit and driver messages from cluttering the screen 
>> > while keeping critical errors and systemd service status output 
>> > visible, resulting in a cleaner installer UI. 
>>
>> Hiding warnings is not a good idea. If something is wrong on the target 
>> the user should know. It will not be the first time that a problem is 
>> hidden (and comes back in "urgent mode") just because someone decided to 
>> suppress warnings. 
>>
>> > 
>> > Signed-off-by: Badrikesh Prusty <badrikes...@siemens.com> 
>> > --- 
>> > meta-isar/recipes-core/images/isar-image-installer.bb | 3 ++- 
>> > 1 file changed, 2 insertions(+), 1 deletion(-) 
>> > 
>> > diff --git a/meta-isar/recipes-core/images/isar-image-installer.bb 
>> b/meta-isar/recipes-core/images/isar-image-installer.bb 
>> > index 3511f3f6..fde81a19 100644 
>> > --- a/meta-isar/recipes-core/images/isar-image-installer.bb 
>> > +++ b/meta-isar/recipes-core/images/isar-image-installer.bb 
>> > @@ -11,7 +11,8 @@ DESCRIPTION = "Example of a ISAR based Installer 
>> Image" 
>> > INSTALLER_WKS_FILE ??= "installer-efi.wks.in" 
>> > WKS_FILE = "${INSTALLER_WKS_FILE}" 
>> > 
>> > -ADDITIONAL_KERNEL_CMDLINE ??= "" 
>> > +# Hide kernel warning/info/debug messages 
>> > +ADDITIONAL_KERNEL_CMDLINE ??= "loglevel=3" 
>> > 
>> > OVERRIDES .= "${@':unattended-installer' if 
>> bb.utils.to_boolean(d.getVar('INSTALLER_UNATTENDED')) else ''}" 
>> > ADDITIONAL_KERNEL_CMDLINE:append:unattended-installer = " \ 
>> > -- 
>> > 2.47.3 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups "isar-users" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to isar-users+...@googlegroups.com. 
>> > To view this discussion visit 
>> https://groups.google.com/d/msgid/isar-users/20251219143600.2585542-1-badrikesh.prusty%40siemens.com. 
>>
>>
>

Patch

diff --git a/meta-isar/recipes-core/images/isar-image-installer.bb b/meta-isar/recipes-core/images/isar-image-installer.bb
index 3511f3f6..fde81a19 100644
--- a/meta-isar/recipes-core/images/isar-image-installer.bb
+++ b/meta-isar/recipes-core/images/isar-image-installer.bb
@@ -11,7 +11,8 @@  DESCRIPTION = "Example of a ISAR based Installer Image"
 INSTALLER_WKS_FILE ??= "installer-efi.wks.in"
 WKS_FILE = "${INSTALLER_WKS_FILE}"
 
-ADDITIONAL_KERNEL_CMDLINE ??= ""
+# Hide kernel warning/info/debug messages
+ADDITIONAL_KERNEL_CMDLINE ??= "loglevel=3"
 
 OVERRIDES .= "${@':unattended-installer' if bb.utils.to_boolean(d.getVar('INSTALLER_UNATTENDED')) else ''}"
 ADDITIONAL_KERNEL_CMDLINE:append:unattended-installer = " \