summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-07-31 17:17:37 +0200
committerHarald Hoyer <harald@redhat.com>2013-07-31 17:17:37 +0200
commit051de5aadcd8cf1638fb86b89916f7184b30991a (patch)
treeb874e293b2b511ffdf3be7bdfda9fbe1678df438
parentd2765b5175663d094737d6819cc3f3df53e7a4cb (diff)
downloaddracut-051de5aadcd8cf1638fb86b89916f7184b30991a.tar.gz
dracut-051de5aadcd8cf1638fb86b89916f7184b30991a.tar.bz2
dracut-051de5aadcd8cf1638fb86b89916f7184b30991a.zip
lvm: add "--yes" to lvm lvchange
-rwxr-xr-xmodules.d/90lvm/lvm_scan.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh
index cc006c83..85ecd4df 100755
--- a/modules.d/90lvm/lvm_scan.sh
+++ b/modules.d/90lvm/lvm_scan.sh
@@ -108,9 +108,9 @@ if [ -n "$LVS" ] ; then
info "Scanning devices $lvmdevs for LVM logical volumes $LVS"
lvm lvscan --ignorelockingfailure 2>&1 | vinfo
if [ -z "$sysinit" ]; then
- lvm lvchange -ay --ignorelockingfailure $nopoll --ignoremonitoring $LVS 2>&1 | vinfo
+ lvm lvchange --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LVS 2>&1 | vinfo
else
- lvm lvchange -ay $sysinit $LVS 2>&1 | vinfo
+ lvm lvchange --yes -ay $sysinit $LVS 2>&1 | vinfo
fi
fi