filesystems: fix udisks check on removable devices

This commit is contained in:
Silvan Calarco 2011-11-21 00:28:02 +01:00
parent bebbb31a7d
commit 2da950c727

View File

@ -173,7 +173,7 @@ blkid | while read line; do
[ "$label" ] || label="disk"
if [ -e $dev ]; then
# skip removable partitions
udisks --show-info $dev | grep "system internal:[[:space:]]*0$" || {
[ "`udisks --show-info $dev | grep 'system internal:[[:space:]]*0$'`" ] && {
[ "$DEBUG" ] && logmsg "$me" $"skipped device $dev ($uuid): removable"
continue;
}