[meta-virtualization] [PATCH] base-files: add xenfs entry to fstab if xen DISTRO_FEATURE is enabled

Philip Tricca flihp at twobit.us
Tue Nov 26 05:08:55 PST 2013


Xen handles mounting xenfs with an init script. Unfortunately this
script is the same one that starts xenstored and xenconsoled. That's
great for dom0 but a domU may need xenfs but running xenstored/
xenconsoled in a domU makes no sense. A simple fstab entry is
preferrable.

Signed-off-by: Philip Tricca <flihp at twobit.us>
---
 recipes-core/base-files/base-files_3.0.14.bbappend |    5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 recipes-core/base-files/base-files_3.0.14.bbappend

diff --git a/recipes-core/base-files/base-files_3.0.14.bbappend b/recipes-core/base-files/base-files_3.0.14.bbappend
new file mode 100644
index 0000000..eb973ad
--- /dev/null
+++ b/recipes-core/base-files/base-files_3.0.14.bbappend
@@ -0,0 +1,5 @@
+do_install_append() {
+	if echo "${DISTRO_FEATURES}" | grep -q 'xen'; then
+		echo "xenfs                /proc/xen            xenfs      defaults              0  0" >> ${D}${sysconfdir}/fstab
+	fi
+}
-- 
1.7.10.4



More information about the meta-virtualization mailing list