diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2017-09-21 04:04:42 -0400 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-09-22 22:50:48 +0000 |
commit | 82dc6280f4bb6cd00664ee89aa2ab33111da24b6 (patch) | |
tree | c4b533606b16546d618b28f45840aed25725f1a8 /meta-oe/recipes-support/lvm2/lvm2.inc | |
parent | 1a1595cbe453bfb37096efd2d953e5d8e8d5a4d3 (diff) | |
download | meta-openembedded-contrib-82dc6280f4bb6cd00664ee89aa2ab33111da24b6.tar.gz |
lvm2: fix start lvm2-monitor.service failed
While systemd based, start lvm2-monitor.service failed.
...
|Sep 21 05:37:34 qemux86-64 lvm[389]: /var/lock: stat failed: No such
file or directory
|Sep 21 05:37:34 qemux86-64 systemd[1]: lvm2-monitor.service: Main
process exited, code=exited, status=5/NOTINSTALLED
...
The failure of lvm2-monitor.service caused reboot hung when disk
partion is lvm thin provision.
While starting lvm2-monitor.service, it reqires the existence of
locking dir "/var/lock" which is a symlink to "../run/lock" in oe-core,
and "/run" is created in "/etc/fstab" which have to be be after the
start of lvm2-monitor.service.
So tweak the locking dir to "/tmp/lock" and make sure the dir existence
(after tmp.mount).
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/lvm2/lvm2.inc')
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc index 9791554a99..d2c1474172 100644 --- a/meta-oe/recipes-support/lvm2/lvm2.inc +++ b/meta-oe/recipes-support/lvm2/lvm2.inc @@ -15,6 +15,7 @@ SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \ file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \ file://0001-Avoid-bashisms-in-init-scripts.patch \ file://0005-do-not-build-manual.patch \ + file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \ " S = "${WORKDIR}/LVM2.${PV}" |