commit:     1666b4dec1cd77842d7928f1cb05bcdcba572fe0
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 26 00:21:39 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Feb 26 00:21:39 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=1666b4de

Fix leaking stderr

'no such dataset '-'' messages leaking while scanning for bootfs

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 defaults/linuxrc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/defaults/linuxrc b/defaults/linuxrc
index 38a2ecb..7c9fac8 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -601,7 +601,7 @@ do
                                                for i in ${BOOTFS}
                                                do
 
-                                                       zfs get type ${i} > 
/dev/null
+                                                       zfs get type ${i} > 
/dev/null 2>&1
                                                        retval=$?
 
                                                        if [ ${retval} -eq 0 ]; 
then

Reply via email to