From 33c44b08bd6bdb9eed208c49c4a8ff38ce5f3ae1 Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Sat, 22 Apr 2023 17:19:03 +0900 Subject: [PATCH] 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 --- recipes-core/base-files/agl-container-guest/fstab | 3 +++ recipes-core/base-files/base-files_%.bbappend | 1 + recipes-core/base-files/base-files_agl-container-guest-demo.inc | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 recipes-core/base-files/agl-container-guest/fstab create mode 100644 recipes-core/base-files/base-files_%.bbappend create mode 100644 recipes-core/base-files/base-files_agl-container-guest-demo.inc 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:" + -- 2.16.6