summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclient/engine/Disk.lib4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/engine/Disk.lib b/client/engine/Disk.lib
index 95c80f2e..3316d0d3 100755
--- a/client/engine/Disk.lib
+++ b/client/engine/Disk.lib
@@ -494,6 +494,7 @@ fi
# Listar dispositivos de discos.
ALLDISKS=$((lsblk -n -e 1,2 -x MAJ:MIN 2>/dev/null || lsblk -n -e 1,2) | \
awk '$6~/^disk$/ {gsub(/!/,"/"); printf "/dev/%s ",$1}')
+#ALLDISKS=$(lsblk -Jd -e 1,2 | jq -r '.blockdevices[] | "/dev/"+select(.type=="disk").name')
# Listar volúmenes lógicos.
VOLGROUPS=$(vgs -a --noheadings 2>/dev/null | awk '{printf "/dev/%s ",$1}')
ALLDISKS="$ALLDISKS $VOLGROUPS"
@@ -652,6 +653,9 @@ case "$TYPE" in
TYPE="DISK"
udevadm info -q property $1 2>/dev/null | grep -q "^ID_BUS=usb" && TYPE="USB"
;;
+ BLKEXT)
+ TYPE="NVM"
+ ;;
SR|IDE*)
TYPE="CDROM" # FIXME Comprobar discos IDE.
;;