summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-10-08 13:49:20 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-10-08 13:49:20 +0000
commit685940c01cb4b8fc3d3f1b379eb0324fb8bc9122 (patch)
treead8f26e65480dec458e88a471136a181d0b7a53d /scripts
parentfd86754329f7e9d57905e75140fab30f6a845156 (diff)
downloadlvm2-685940c01cb4b8fc3d3f1b379eb0324fb8bc9122.tar.gz
Support for passing --yes flag recursively.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/fsadm.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh
index 476f15058..d10d88bea 100644
--- a/scripts/fsadm.sh
+++ b/scripts/fsadm.sh
@@ -51,7 +51,7 @@ XFS_CHECK=xfs_check
# user may override lvm location by setting LVM_BINARY
LVM=${LVM_BINARY-lvm}
-YES=
+YES=${_FSADM_YES}
DRY=0
VERB=
FORCE=
@@ -128,6 +128,8 @@ cleanup() {
if [ "$DO_LVRESIZE" -eq 2 ]; then
# start LVRESIZE with the filesystem modification flag
# and allow recursive call of fsadm
+ _FSADM_YES=$YES
+ export _FSADM_YES
unset FSADM_RUNNING
dry exec $LVM lvresize $VERB $FORCE -r -L${NEWSIZE}b $VOLUME_ORIG
fi