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/changelog | 5 +++++ debian/local/btrfs.local-premount | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index aac54d2f..cc99300b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ btrfs-progs (4.5.2-1) unstable; urgency=medium + [ Dimitri John Ledkov ] * Thanks for NMU of package rename. * New upstream release 4.5.2. * Upload using dgit. @@ -12,6 +13,10 @@ btrfs-progs (4.5.2-1) unstable; urgency=medium * No sponsorship required Closes: #823474 * Add Provides btrfs-tools-udeb to the -progs-udeb package. + [ Ben Hutchings ] + * Show only errors from boot-time "btrfs scan" if "quiet" is + used. Closes: #812722 + -- Dimitri John Ledkov Tue, 10 May 2016 09:59:51 +0100 btrfs-progs (4.4.1-1.1) unstable; urgency=medium 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