Package: btrfs-tools Version: 4.3-1 Severity: normal Tags: patch Currently btrfs's boot script that runs in the initramfs always prints messages, even if there are no btrfs filesystems present and no errors. This should not happen when the "quiet" kernel parameter is used. Please apply the attached patch.
Ben. -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages btrfs-tools depends on: ii e2fslibs 1.42.13-1 ii libblkid1 2.27.1-1 ii libc6 2.21-6 ii libcomerr2 1.42.13-1 ii liblzo2-2 2.08-1.2 ii libuuid1 2.27.1-1 ii zlib1g 1:1.2.8.dfsg-2+b1 btrfs-tools recommends no packages. btrfs-tools suggests no packages. -- no debconf information
>From 2bc737c624c8307af7a9084b9e87ae2a3f912358 Mon Sep 17 00:00:00 2001 From: Ben Hutchings <b...@decadent.org.uk> Date: Tue, 26 Jan 2016 03:51:30 +0000 Subject: [PATCH] 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(-) diff --git a/debian/local/btrfs.local-premount b/debian/local/btrfs.local-premount index 7f7bf27..aea7128 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