feat(app-emulation/xenstore): Add unit to moutn xenfs

On Xen-based virtual machines this will automatically mount xenfs so the
xenstore utility works out of the box.
This commit is contained in:
Michael Marineau 2014-04-14 16:08:10 -04:00
parent c1d86f1d6a
commit 0d75a04fe8
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Before=local-fs.target
DefaultDependencies=false
ConditionVirtualization=xen
[Mount]
What=xenfs
Where=/proc/xen
Type=xenfs

View File

@ -6,7 +6,7 @@ EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit multilib python-any-r1 toolchain-funcs
inherit multilib python-any-r1 systemd toolchain-funcs
MY_PV=${PV/_/-}
S="${WORKDIR}/xen-${MY_PV}"
@ -70,4 +70,7 @@ src_compile() {
src_install() {
dolib.so tools/xenstore/libxenstore.so*
dobin tools/xenstore/xenstore
systemd_dounit "${FILESDIR}"/proc-xen.mount
systemd_enable_service local-fs.target proc-xen.mount
}