Guess vd* devices as well

This commit is contained in:
Ryan Finnie 2012-10-03 01:18:02 -07:00
parent bb8aa690d5
commit ac84913172
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ PPA=$(config-get swift-release)
if [ "$DEVICES" = "guess" ]; then
# This should be more smart
DEVICES=$(awk '($4 ~ /^(sd[a-z]|cciss\/c[0-9]d[0-9])$/) && ($4 != "sda") && ($4 != "cciss/c0d0") {print $4}' </proc/partitions)
DEVICES=$(awk '($4 ~ /^(sd[a-z]|vd[a-z]|cciss\/c[0-9]d[0-9])$/) && ($4 != "sda") && ($4 != "vda") && ($4 != "cciss/c0d0") {print $4}' </proc/partitions)
fi
function set_swift_hash {

View File

@ -1 +1 @@
30
31