diff options
Diffstat (limited to 'recipes-extended/builder-container-config/builder-container-config_1.0.bb')
| -rw-r--r-- | recipes-extended/builder-container-config/builder-container-config_1.0.bb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-extended/builder-container-config/builder-container-config_1.0.bb b/recipes-extended/builder-container-config/builder-container-config_1.0.bb new file mode 100644 index 00000000..6b023caa --- /dev/null +++ b/recipes-extended/builder-container-config/builder-container-config_1.0.bb | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | SUMMARY = "Entrypoint and user configuration for Yocto builder container" | ||
| 2 | DESCRIPTION = "CROPS-style entrypoint script that creates a builder user \ | ||
| 3 | matching the /workdir mount owner, then hands off to systemd." | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 6 | |||
| 7 | SRC_URI = "file://builder-entry.sh" | ||
| 8 | |||
| 9 | S = "${UNPACKDIR}" | ||
| 10 | RDEPENDS:${PN} = "bash sudo shadow" | ||
| 11 | |||
| 12 | inherit allarch | ||
| 13 | |||
| 14 | do_install() { | ||
| 15 | # Entrypoint script (CROPS-style user creation -> exec /sbin/init) | ||
| 16 | install -d ${D}${bindir} | ||
| 17 | install -m 0755 ${UNPACKDIR}/builder-entry.sh ${D}${bindir}/ | ||
| 18 | |||
| 19 | # Create /workdir mount point | ||
| 20 | install -d ${D}/workdir | ||
| 21 | } | ||
| 22 | |||
| 23 | FILES:${PN} = "${bindir}/builder-entry.sh /workdir" | ||
