]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
setup: Disable printing kernel debug messages on console
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Aug 2017 09:36:20 +0000 (09:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Aug 2017 09:36:46 +0000 (09:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
setup/setup.nm
setup/sysctl/printk.conf [new file with mode: 0644]

index 75c9da22fd5ad2e9743dac697746418a75af4e8d..dad72ae0b1296ade59e3a6224cabb53706dd3880 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = setup
 version    = 3.0
-release    = 8
+release    = 9
 arch       = noarch
 
 groups     = Base Build System/Base
@@ -49,6 +49,8 @@ build
                chmod -v 0400 %{BUILDROOT}%{sysconfdir}/{,g}shadow
 
                mkdir -pv %{BUILDROOT}%{sysconfdir}/sysctl.d
+               install -m 644 %{DIR_APP}/sysctl/printk.conf \
+                       %{BUILDROOT}%{sysconfdir}/sysctl.d/printk.conf
                install -m 644 %{DIR_APP}/sysctl/swappiness.conf \
                        %{BUILDROOT}%{sysconfdir}/sysctl.d/swappiness.conf
        end
diff --git a/setup/sysctl/printk.conf b/setup/sysctl/printk.conf
new file mode 100644 (file)
index 0000000..efad553
--- /dev/null
@@ -0,0 +1,3 @@
+# This will disable printing any kernel messages on the console
+
+kernel.printk=1 4 1 7