summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-09-17 16:49:17 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-09-17 16:49:17 +0200
commit3817392d87f24c2d350f801daac2ee16358c1ecf (patch)
treee87d6ab8ed97e531be1b7c974f5985974085b8d3 /scripts
parent944e560e960964217c7525a18c60bf17ca046e0c (diff)
downloadlvm2-3817392d87f24c2d350f801daac2ee16358c1ecf.tar.gz
lvm_import_vdo: --dry-run automatically verbose
Dry-run is way more usable when it's verbose.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lvm_import_vdo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lvm_import_vdo.sh b/scripts/lvm_import_vdo.sh
index 06cdb106d..7dc326d9f 100755
--- a/scripts/lvm_import_vdo.sh
+++ b/scripts/lvm_import_vdo.sh
@@ -73,7 +73,7 @@ tool_usage() {
echo " -n | --name Specifies VG/LV name for converted VDO volume"
echo " -v | --verbose Be verbose"
echo " -y | --yes Answer \"yes\" at any prompts"
- echo " --dry-run Print commands without running them"
+ echo " --dry-run Print verbosely commands without running them"
exit
}
@@ -434,7 +434,7 @@ do
"-n"|"--name" ) shift; NAME=$1 ;;
"-v"|"--verbose") VERB="-v" ;;
"-y"|"--yes" ) YES="-y" ;;
- "--dry-run" ) DRY="1" ;;
+ "--dry-run" ) DRY="1" ; VERB="-v" ;;
"-*") error "Wrong argument \"$1\". (see: $TOOL --help)" ;;
*) DEVICENAME=$1 ;; # device name does not start with '-'
esac