summaryrefslogtreecommitdiffstats
path: root/recipes-core/base-files-guest
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/base-files-guest')
-rw-r--r--recipes-core/base-files-guest/base-files-guest-fstab/fstab3
-rw-r--r--recipes-core/base-files-guest/base-files-guest-fstab_1.0.0.bb25
2 files changed, 28 insertions, 0 deletions
diff --git a/recipes-core/base-files-guest/base-files-guest-fstab/fstab b/recipes-core/base-files-guest/base-files-guest-fstab/fstab
new file mode 100644
index 000000000..d6c936be9
--- /dev/null
+++ b/recipes-core/base-files-guest/base-files-guest-fstab/fstab
@@ -0,0 +1,3 @@
+# Reference fstab for container guest
+devpts /dev/pts devpts mode=0620,ptmxmode=0666,gid=5 0 0
+tmpfs /var/volatile tmpfs defaults 0 0
diff --git a/recipes-core/base-files-guest/base-files-guest-fstab_1.0.0.bb b/recipes-core/base-files-guest/base-files-guest-fstab_1.0.0.bb
new file mode 100644
index 000000000..ad3e6e940
--- /dev/null
+++ b/recipes-core/base-files-guest/base-files-guest-fstab_1.0.0.bb
@@ -0,0 +1,25 @@
+SUMMARY = "Container guest extention for fstab"
+DESCRIPTION = "The base-files-guest-fstab package creates the fstab for container guest integration."
+SECTION = "base"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI = " \
+ file://fstab \
+"
+S = "${WORKDIR}"
+
+#INHIBIT_DEFAULT_DEPS = "1"
+
+do_install () {
+ install -m 0755 -d ${D}${sysconfdir}
+
+ install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab-guest
+}
+
+PACKAGES = "${PN}"
+FILES:${PN} = "${sysconfdir}/fstab-guest"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+CONFFILES:${PN} = "${sysconfdir}/fstab-guest"