diff --git a/modules/clone.sh b/modules/clone.sh index 1af8ce81e..b571591ca 100644 --- a/modules/clone.sh +++ b/modules/clone.sh @@ -6,6 +6,9 @@ function clone { device="$1" case $options in + "detect") + fdisk -l | grep -o '^/dev/sd[a-z]' | sort -u + *) if [ -z "$device" ]; then device="/dev/sdb"