From df781932b1988d0f716a6a658504cdcf40fd66c0 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Sat, 6 Mar 2010 18:59:38 -0300 Subject: [PATCH] Silent error message: No medium found in autodetect hook New blkid from util-linux-ng-2.17.1 show error messages from removable devices without medium on it, like cdrom or 4-in-1 readers. Signed-off-by: Gerardo Exequiel Pozzi --- install/autodetect | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/install/autodetect b/install/autodetect index 6c9193c..be5f8c7 100644 --- a/install/autodetect +++ b/install/autodetect @@ -14,7 +14,7 @@ install () findfs () { for blkdev in $(find /dev -type b | grep -v -e /dev/loop -e /dev/ram -e /dev/fd); do - (eval $(/sbin/blkid -o udev -p "${blkdev}"); [ "${ID_FS_USAGE}" = "filesystem" ] && echo $ID_FS_TYPE) + (eval $(/sbin/blkid -o udev -p "${blkdev}" 2> /dev/null); [ "${ID_FS_USAGE}" = "filesystem" ] && echo $ID_FS_TYPE) done } -- 1.7.0.1