commit:     d81b2ed6d792fda25719baa99e391126980c3bd0
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 23 21:39:14 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Jan 23 21:39:14 2016 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=d81b2ed6

mdev: if the vpd_pg83 sysfs node fails a test read, hide the error; bug 569990

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 mdev/helpers/storage-device | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mdev/helpers/storage-device b/mdev/helpers/storage-device
index 1ecb472..5fee64c 100644
--- a/mdev/helpers/storage-device
+++ b/mdev/helpers/storage-device
@@ -9,7 +9,7 @@ PART="$(echo ${MDEV} | sed 's/\(.*[a-z]\)\(.*\)/\2/')"
 
 [ -f "/sys/class/block/${DEV}/device/vpd_pg83" ] || exit 6
 
-cat "/sys/class/block/${DEV}/device/vpd_pg83" 2>&1 >/dev/null || exit 15
+cat "/sys/class/block/${DEV}/device/vpd_pg83" >/dev/null 2>&1 || exit 15
 
 case $DEV in
 vd*)

Reply via email to