mountdest.sh: Fix detection of virtio_blk devices.

This commit is contained in:
Michael Tremer
2012-08-22 22:03:02 +02:00
parent 8f28e1b8fc
commit 32e62ec2e0

View File

@@ -23,7 +23,7 @@ echo "Scanning for possible destination drives"
# scan sd?
echo "--> sd?"
for DEVICE in `find /sys/block/* -maxdepth 0 -name sd* -exec basename {} \; | sort | uniq`
for DEVICE in `find /sys/block/* -maxdepth 0 -name sd* -or -name vd* -exec basename {} \; | sort | uniq`
do
if [ "$(grep ${DEVICE} /proc/partitions)" = "" ]; then
umount /harddisk 2> /dev/null