Skip to contentSkip to conversation

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

PATCH In review Philip Tricca 2 participants 3 messages Nov 26, 2013 – Dec 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 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
recipes-core/base-files/base-files_3.0.14.bbappend new file +5 -0
new file mode 100644
index 0000000..eb973ad
@@ -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
+}
Signature · 1 line
1.7.10.4
#1 lore raw

Hey Phillip,

It appears that I forgot to follow up on this. I was working up upreving libvirt and grabbed this into my tree. I'll push this shortly, since libvirt is nearly done :)

Bruce

Quoted 30 lines · Philip Tricca

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.

---
 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
recipes-core/base-files/base-files_3.0.14.bbappend new file +5 -1
new file mode 100644
index 0000000..eb973ad
@@ -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

_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#2 lore raw

Thanks Bruce.

Philip

Quoted 42 lines · Bruce Ashfield

Hey Phillip,

It appears that I forgot to follow up on this. I was working up upreving libvirt and grabbed this into my tree. I'll push this shortly, since libvirt is nearly done :)

Bruce

Quoted 30 lines · Philip Tricca

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.

---
 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
recipes-core/base-files/base-files_3.0.14.bbappend new file +5 -1
new file mode 100644
index 0000000..eb973ad
@@ -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

_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization