base-files: add xenfs entry to fstab if xen DISTRO_FEATURE is enabled

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@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Philip Tricca 2013-11-26 13:08:55 +00:00 committed by Bruce Ashfield
parent 61f1cd9c44
commit 851a4ae2ce

View File

@ -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
}