diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2010-10-08 13:49:20 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2010-10-08 13:49:20 +0000 |
commit | 685940c01cb4b8fc3d3f1b379eb0324fb8bc9122 (patch) | |
tree | ad8f26e65480dec458e88a471136a181d0b7a53d /scripts | |
parent | fd86754329f7e9d57905e75140fab30f6a845156 (diff) | |
download | lvm2-685940c01cb4b8fc3d3f1b379eb0324fb8bc9122.tar.gz |
Support for passing --yes flag recursively.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/fsadm.sh | 4 |
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 |