mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
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:
parent
c1d86f1d6a
commit
0d75a04fe8
9
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/files/proc-xen.mount
vendored
Normal file
9
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/files/proc-xen.mount
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Before=local-fs.target
|
||||
DefaultDependencies=false
|
||||
ConditionVirtualization=xen
|
||||
|
||||
[Mount]
|
||||
What=xenfs
|
||||
Where=/proc/xen
|
||||
Type=xenfs
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user