From 2a390cd010973170ca1782bdfcc81e10956499d6 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 26 Jan 2016 03:51:30 +0000 Subject: Show only errors from boot-time "btrfs scan" if "quiet" is used When the "quiet" kernel parameter is used, redirect stdout in the initramfs boot script to /dev/null. Stop redirecting stderr, as any errors should still be shown. --- debian/local/btrfs.local-premount | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debian/local') diff --git a/debian/local/btrfs.local-premount b/debian/local/btrfs.local-premount index 7f7bf27c..aea71286 100644 --- a/debian/local/btrfs.local-premount +++ b/debian/local/btrfs.local-premount @@ -19,5 +19,7 @@ esac if [ -x /bin/btrfs ] then modprobe btrfs - /bin/btrfs device scan 2> /dev/null + # If asked to be quiet, show only errors + [ "${quiet}" = "y" ] && exec >/dev/null + /bin/btrfs device scan fi -- cgit v1.2.3