summaryrefslogtreecommitdiffstats
path: root/recipes-core/base-files
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-05-09 15:29:36 +0000
commitf549f99c6c5fe521d9e70e3a8908a1da310e28bc (patch)
tree9398408380074cd0472982a1e71780d08f4402e9 /recipes-core/base-files
parent9f78d886afd708addc0c9d54bc7000817463941b (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: I9f94e36606eeccf681417ced052a974e88f1be77 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'recipes-core/base-files')
-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:"
+