From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1074708-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id B5E83138334
	for <garchives@archives.gentoo.org>; Thu, 28 Feb 2019 06:40:34 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id CA0B0E08DD;
	Thu, 28 Feb 2019 06:40:33 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A1617E08DD
	for <gentoo-commits@lists.gentoo.org>; Thu, 28 Feb 2019 06:40:33 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 48071335CA6
	for <gentoo-commits@lists.gentoo.org>; Thu, 28 Feb 2019 06:40:31 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 96B2754F
	for <gentoo-commits@lists.gentoo.org>; Thu, 28 Feb 2019 06:40:29 +0000 (UTC)
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" <robbat2@gentoo.org>
Message-ID: <1551140499.1666b4dec1cd77842d7928f1cb05bcdcba572fe0.robbat2@gentoo>
Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/
X-VCS-Repository: proj/genkernel
X-VCS-Files: defaults/linuxrc
X-VCS-Directories: defaults/
X-VCS-Committer: robbat2
X-VCS-Committer-Name: Robin H. Johnson
X-VCS-Revision: 1666b4dec1cd77842d7928f1cb05bcdcba572fe0
X-VCS-Branch: master
Date: Thu, 28 Feb 2019 06:40:29 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 5f757e0a-e812-4ae1-befe-1d69c282b74d
X-Archives-Hash: ba65b6fed89975d2fc20a25cf852eb72

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