FS#12928 - [initscripts] kernel option "quiet" is being used to mute fsck output
Attached to Project:
Arch Linux
Opened by Denis A. Altoe Falqueto (denisfalqueto) - Saturday, 24 January 2009, 11:12 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 07 June 2009, 14:02 GMT
Opened by Denis A. Altoe Falqueto (denisfalqueto) - Saturday, 24 January 2009, 11:12 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 07 June 2009, 14:02 GMT
|
Details
Description:
Hi, As the summary says, the kernel option "quiet" is being used in /etc/rc.sysinit to discard the output of progress information of fsck, when it is run after n mounts of each filesystem. In spite I can see the intention of that behaviour, I think that is not the common one. The "quiet" option should be used only for telling the kernel that you don't want all the information he spits out. The corresponding commit to the file was this: http://projects.archlinux.org/?p=initscripts.git;a=blob;f=rc.sysinit;hb=675e9d69d02233e0079672f6c10cbe07da3027ad And this request was born from this discussion on arch-general: http://www.archlinux.org/pipermail/arch-general/2009-January/003362.html A well made remark from Markus Heuser was that the the progress information is not so verbose and is very unfrequent to be inconvenient. |
This task depends upon
Since my box is equipped with a ~400 GB /home partition that takes like forever to be checked by fsck, I accidentily resetted my machine because I thought it had crashed.
I guess we all know the "let me just boot my pc for a second because I need to copy that file"-cases when fsck comes in and starts to look over your harddisk.
The status-quo is that we don't even get the "next check in X mounts"-warnings so that we can't even prepare.
FS#13157fixes the "let me just boot my pc for a second because I need to copy that file" issue.As I already said, fscks out is not very much verbose and adds a quite some convenience (at least in my eyes).
if /bin/grep -qw quiet /proc/cmdline; then
FSCK_OUT=/dev/null
FSCK_ERR=/dev/null
else
FSCK_OUT=/dev/stdout
FSCK_ERR=/dev/null
fi
Is this ok for you all?
Is it needed to quiet the error output?
Why not just do : /sbin/fsck -A -T -C -a -t $NETFS $FORCEFSCK
http://projects.archlinux.org/?p=initscripts.git;a=commitdiff;h=e932c3406acf105c99e159ca0610768fbfb49b1a
What I am less sure about is the 2>/dev/null part, which was added there with no explanation :
http://projects.archlinux.org/?p=initscripts.git;a=commit;h=ef6a41ebd7e2ab216e4b950df2a6d0826aef39b7
> were two cases, in order to factor them to only one fsck call
Yes.
As it is right now, they can be safely removed/replaced. I do, however,
think that variables are a good thing. Like functions, they can make your
life easier.