summaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-04-22 17:19:03 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-06-02 09:06:53 +0000
commit33c44b08bd6bdb9eed208c49c4a8ff38ce5f3ae1 (patch)
tree36059411c46aa3a408f6c779d047cdb02c2b267a /recipes-core
parent274ce2791f767bec0721d94bfd2666dc10d3221a (diff)
Overwrite fstab to become adapted guest container environment
When existing agl demo integrate to container guest, need to disable many mount operations. Existing agl demo image use loose setting by fstab. This patch remove unnecessary mount operations from fstab in case of container guest. Bug-AGL: SPEC-4766 Change-Id: I254d64bf4cbb3f4b27008e16ac8438585a46c9d7 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/base-files/agl-container-guest/fstab3
-rw-r--r--recipes-core/base-files/base-files_%.bbappend1
-rw-r--r--recipes-core/base-files/base-files_agl-container-guest-demo.inc2
3 files changed, 6 insertions, 0 deletions
diff --git a/recipes-core/base-files/agl-container-guest/fstab b/recipes-core/base-files/agl-container-guest/fstab
new file mode 100644
index 000000000..13389d462
--- /dev/null
+++ b/recipes-core/base-files/agl-container-guest/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/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend
new file mode 100644
index 000000000..aeddb7cce
--- /dev/null
+++ b/recipes-core/base-files/base-files_%.bbappend
@@ -0,0 +1 @@
+require ${@bb.utils.contains('AGL_FEATURES', 'agl-container-guest-demo', 'base-files_agl-container-guest-demo.inc', '', d)}
diff --git a/recipes-core/base-files/base-files_agl-container-guest-demo.inc b/recipes-core/base-files/base-files_agl-container-guest-demo.inc
new file mode 100644
index 000000000..dfce6ce6b
--- /dev/null
+++ b/recipes-core/base-files/base-files_agl-container-guest-demo.inc
@@ -0,0 +1,2 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/agl-container-guest:"
+