mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
mountdest.sh: Fix detection of virtio_blk devices.
This commit is contained in:
@@ -23,7 +23,7 @@ echo "Scanning for possible destination drives"
|
|||||||
|
|
||||||
# scan sd?
|
# scan sd?
|
||||||
echo "--> 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
|
do
|
||||||
if [ "$(grep ${DEVICE} /proc/partitions)" = "" ]; then
|
if [ "$(grep ${DEVICE} /proc/partitions)" = "" ]; then
|
||||||
umount /harddisk 2> /dev/null
|
umount /harddisk 2> /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user