diff --git a/collect/scripts/collect/inventory/disk.tree b/collect/scripts/collect/inventory/disk.tree index 45e1c853fc5ddb06a1c9134fc25fa712fee08777..85add055532ac5927e622f90396a6463df43defe 100755 --- a/collect/scripts/collect/inventory/disk.tree +++ b/collect/scripts/collect/inventory/disk.tree @@ -94,6 +94,9 @@ if test -d "/dev/disk/by-id/"; then # If "/proc/mdstat" exists, than check for RAID disks test -f "/proc/mdstat" && raid=true + # Add scsi to accept machines with only scsi as disk type + diskType="${diskType}\|scsi" + # Verify every disk in "/dev/disk/by-id/", excluding all USB's, unless it's # the USB used as root by Classmate notebook for line in $(ls -l --time-style="+%F %R" /dev/disk/by-id/ | @@ -104,7 +107,7 @@ if test -d "/dev/disk/by-id/"; then disks="${disks}<hdd${number}>" disks="${disks}<model value=\"$(ls -l --time-style="+%F %R"\ /dev/disk/by-id/ | grep "$line$" | awk '{print $8}' | grep "$diskType" | - cut -d"-" -f2-)\" type=\"string\"/>" + head -n 1 | cut -d"-" -f2-)\" type=\"string\"/>" # Multiply the number of blocks by their standard size diskSize=$(($(cat /sys/block/$line/size)*512))