diff options
author | Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> | 2023-05-19 06:07:28 +0900 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-05-29 13:35:09 +0000 |
commit | 9f82d40210944ffb2fae5e8435f5269807a6b384 (patch) | |
tree | 98126dd4eaf32e41d7b91a61cbc0bfec2bd8132d /recipes-core | |
parent | 0d92a75ac38965766389a9e5f172c70d7680792d (diff) |
A fstab replacement method change to build container guest
In https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/28690
review, I got a request for method change request. Existing
method use bbappend for base files.
New method use ROOTFS_POSTPROCESS_COMMAND.
Bug-AGL: SPEC-4803
Change-Id: Ie058ef55f7dfeae5d651b46d5ff731d1a2bebc19
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/base-files-guest/base-files-guest-fstab/fstab (renamed from recipes-core/base-files/agl-container-guest/fstab) | 2 | ||||
-rw-r--r-- | recipes-core/base-files-guest/base-files-guest-fstab_1.0.0.bb | 25 | ||||
-rw-r--r-- | recipes-core/base-files/base-files_%.bbappend | 1 | ||||
-rw-r--r-- | recipes-core/base-files/base-files_agl-container-guest-demo.inc | 2 |
4 files changed, 26 insertions, 4 deletions
diff --git a/recipes-core/base-files/agl-container-guest/fstab b/recipes-core/base-files-guest/base-files-guest-fstab/fstab index 13389d462..d6c936be9 100644 --- a/recipes-core/base-files/agl-container-guest/fstab +++ b/recipes-core/base-files-guest/base-files-guest-fstab/fstab @@ -1,3 +1,3 @@ # Reference fstab for container guest -devpts /dev/pts devpts mode=0620,ptmxmode=0666,gid=5 0 0 +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" diff --git a/recipes-core/base-files/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend deleted file mode 100644 index aeddb7cce..000000000 --- a/recipes-core/base-files/base-files_%.bbappend +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index dfce6ce6b..000000000 --- a/recipes-core/base-files/base-files_agl-container-guest-demo.inc +++ /dev/null @@ -1,2 +0,0 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/agl-container-guest:" - |