diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-24 10:02:34 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-24 10:04:18 +0000 |
commit | eac4de6dd1ed522902da20170085e08dd910f0d8 (patch) | |
tree | 5810fae6ef0419139810f1bb78e2de01ef35b6cc /main/lvm2/lvm.initd | |
parent | 9cfd4b125daacff3e09c527e020432e3660ce1f8 (diff) | |
download | aports-eac4de6dd1ed522902da20170085e08dd910f0d8.tar.bz2 aports-eac4de6dd1ed522902da20170085e08dd910f0d8.tar.xz |
main/lvm2: fix vgscan --mknodes
we backport a patch from upstream and change our init.d script to run
vgchange even if vgscan returns failure.
fixes #3543
Diffstat (limited to 'main/lvm2/lvm.initd')
-rw-r--r-- | main/lvm2/lvm.initd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/lvm2/lvm.initd b/main/lvm2/lvm.initd index 1c6971beca..8a538db945 100644 --- a/main/lvm2/lvm.initd +++ b/main/lvm2/lvm.initd @@ -21,8 +21,8 @@ start() { modprobe dm-mod 2>/dev/null fi if [ -d /proc/lvm ] || dm_in_proc; then - vgscan --mknodes --ignorelockingfailure >/dev/null 2>&1 &&\ - vgchange --ignorelockingfailure -a y >/dev/null 2>&1 + vgscan --mknodes --ignorelockingfailure >/dev/null 2>&1 + vgchange --sysinit --activate y >/dev/null 2>&1 rc=$? else rc=1 |