summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2023-01-03 11:38:33 -0600
committerDavid Teigland <teigland@redhat.com>2023-01-03 11:40:53 -0600
commit81acde7ffdf9fbe522ada16f89e429d9f729dc0c (patch)
treec0765570ce0b97e20bf49d0ecb8f266ca447546d
parentaec5e573afe610070eb2c6bed675d2a7c0efc7e8 (diff)
downloadlvm2-81acde7ffdf9fbe522ada16f89e429d9f729dc0c.tar.gz
lvresize: fix cryptsetup resize in helper
typo used "cryptresize" as command name this affects cases where the file system is resized independently, and then the lvresize command is used which only needs to resize the crypt device and the LV.
-rwxr-xr-xscripts/lvresize_fs_helper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lvresize_fs_helper.sh b/scripts/lvresize_fs_helper.sh
index 031b8453b..f531dd447 100755
--- a/scripts/lvresize_fs_helper.sh
+++ b/scripts/lvresize_fs_helper.sh
@@ -224,7 +224,7 @@ fsreduce() {
cryptresize() {
NEWSIZESECTORS=$(($NEWSIZEBYTES/512))
logmsg "cryptsetup resize ${NEWSIZESECTORS} sectors ${DEVPATH}"
- cryptresize resize --size "$NEWSIZESECTORS" "$DEVPATH"
+ cryptsetup resize --size "$NEWSIZESECTORS" "$DEVPATH"
if [ $? -eq 0 ]; then
logmsg "cryptsetup done"
else