ref: f28692af036c37a4db5553ac928421cbc97c3ebd
parent: d6a68123b9cd3c751ee45a376b01d1b164c0ab5b
author: Sören Tempel <soeren+git@soeren-tempel.net>
date: Sun Feb 18 06:27:22 CST 2018
initramfs-init: redirect output of brtfs scan to /dev/null None of the other commands emit any output if everything works as expected and I just like consistency.
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -389,7 +389,8 @@
$KOPT_root
if echo "$KOPT_modules $KOPT_rootfstype" | grep -qw btrfs; then
- /sbin/btrfs device scan || echo "Failed to scan devices for btrfs filesystem."
+ /sbin/btrfs device scan >/dev/null || \
+ echo "Failed to scan devices for btrfs filesystem."
fi
if [ -n "$KOPT_resume" ]; then