Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set 'dmesg -n 5' in etc/scripts/boot #3108

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions usr/share/rear/skel/default/etc/scripts/boot
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
#!/bin/bash
# Relax-and-Recover
# disable console logging for kernel messages
dmesg -n1

# Limit console logging for 'dmesg' messages to level 5
# (i.e. what kernel messages appear intermixed with ReaR messages on the console)
# where level 5 means to show only the following kernel messages (cf. 'dmesg -h')
# emerg - system is unusable
# alert - action must be taken immediately
# crit - critical conditions
# err - error conditions
# warn - warning conditions
# We need also kernel warning messages because some errors are reported as warning
# cf. https://github.com/rear/rear/issues/3107#issuecomment-1855560152
dmesg -n 5

# basic mounts
mountpoint /proc || mount -t proc -n none /proc
Expand Down