]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
mountdest.sh: Fix detection of virtio_blk devices.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Aug 2012 20:03:02 +0000 (22:03 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Aug 2012 20:03:02 +0000 (22:03 +0200)
src/install+setup/install/mountdest.sh

index 700b8389f6a8b28f799f125a4a8de51e009b174c..42e2c76640000c434a2cb47b1ca1098eeb468572 100644 (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