filesystems: fix udisks check on removable devices
This commit is contained in:
parent
bebbb31a7d
commit
2da950c727
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user