kernel booting messages, first line
PATCH 1/1 kernel booting messages, first line
For -rc8 ,
Hoping that someone DO cares about the aesthetic of kernel messages at boot :
What it does : first line of booting kernel, as seen in dmesg(1), will be the Linux kernel signature (version, compiler, compiler hostname).
What it solves : it appers ahead of cgroup messages at booting.
This ugliness, since 3.10.x kernel.
So :
Instead of the unaesthetic lines :
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4 ...
... We will have :
Linux version 4 ...
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
As normal .
In file linux-4.4-rc7/init/main.c :
<code>
main+.c 2015-12-29 03:18:59.896820046 +0200 renamed from main.c 2015-12-28 04:17:37.000000000 +0200 +1 -1
@@ -512,6 +512,7 @@ * Set up the the initial canary ASAP: */ boot_init_stack_canary(); + pr_notice("%s", linux_banner); cgroup_init_early();
@@ -524,7 +525,6 @@ */ boot_cpu_init(); page_address_init(); - pr_notice("%s", linux_banner); setup_arch(&command_line); mm_init_cpumask(&init_mm); setup_command_line(command_line);
</code>
Quoted 60 lines · Alexandru GOIA
For -rc8 ,
Hoping that someone DO cares about the aesthetic of kernel messages at boot :
What it does : first line of booting kernel, as seen in dmesg(1), will be the Linux kernel signature (version, compiler, compiler hostname).
What it solves : it appers ahead of cgroup messages at booting.
This ugliness, since 3.10.x kernel.
So :
Instead of the unaesthetic lines :
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4 ...... We will have :
Linux version 4 ...
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacctAs normal .
In file
linux-4.4-rc7/init/main.c:<code>
main+.c 2015-12-29 03:18:59.896820046 +0200 renamed from main.c 2015-12-28 04:17:37.000000000 +0200 +1
-1@@ -512,6 +512,7 @@ * Set up the the initial canary ASAP: */ boot_init_stack_canary(); + pr_notice("%s", linux_banner); cgroup_init_early();@@ -524,7 +525,6 @@ */ boot_cpu_init(); page_address_init(); - pr_notice("%s", linux_banner); setup_arch(&command_line); mm_init_cpumask(&init_mm); setup_command_line(command_line);
Quoted 4 lines
</code>
Signed-off-by Alexandru Goia <[email protected]>--
I like the patch. Could you make it a proper kernel patch, please?
thanks,
Signature · 1 line
~Randy
Tejun Heo
maintainerQuoted 28 lines · Randy Dunlap
Quoted 27 lines · Alexandru GOIA
What it does : first line of booting kernel, as seen in dmesg(1), will be the Linux kernel signature (version, compiler, compiler hostname).
What it solves : it appers ahead of cgroup messages at booting.
This ugliness, since 3.10.x kernel.
So :
Instead of the unaesthetic lines :
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4 ...... We will have :
Linux version 4 ...
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacctAs normal .
...
Quoted 2 lines
I like the patch. Could you make it a proper kernel patch, please?
I don't know why cgroup is printing those messages to begin with. They don't serve any purpose. Lemme just kill them.
Thanks.
Signature · 1 line
tejun
Tejun Heo
maintainerPATCH 1/1 cgroup: demote subsystem init messages to KERN_DEBUG
From 507bd688e32c2b2ca4bed139d9123b3da6d2d19d Mon Sep 17 00:00:00 2001
From: Tejun Heo <[email protected]>
Date: Tue, 29 Dec 2015 14:53:56 -0500
These are noisy during boot and not all that interesting.
---
Queued for the coming merge window.
Thanks.
kernel/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/cgroup.c +1 -1
@@ -5245,7 +5245,7 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss, bool early) {struct cgroup_subsys_state *css; -printk (KERN_INFO "Initializing cgroup subsys %s\n" , ss->name); +pr_debug ("Initializing cgroup subsys %s\n" , ss->name);mutex_lock (&cgroup_mutex);
Signature · 1 line
2.5.0