The default motd is created at build-time by the basefiles recipes. When the entire distro is built in a way that is unsuitable for production, we can warn about that here.
Signed-off-by: Patrick Ohly <[email protected]> --- meta/recipes-core/base-files/base-files_3.0.14.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb index ca7bf06..eff70a0 100644 --- a/meta/recipes-core/base-files/base-files_3.0.14.bb +++ b/meta/recipes-core/base-files/base-files_3.0.14.bb @@ -127,6 +127,17 @@ do_install () { install -m 0644 ${WORKDIR}/nsswitch.conf ${D}${sysconfdir}/nsswitch.conf install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd + non_production="${@ ' '.join(set(d.getVar('DISTRO_FEATURES').split()).intersection((d.getVar('DISTRO_FEATURES_NON_PRODUCTION') or '').split()))}" + if [ "$non_production" ]; then + cat >>${D}${sysconfdir}/motd <<EOF +****************************************************************** +*** This distro was built using these non-production features: *** +*** `printf "%-58s" "$non_production"` *** +*** Do not use this distro and its images in production. *** +****************************************************************** + +EOF + fi ln -sf /proc/mounts ${D}${sysconfdir}/mtab } -- git-series 0.9.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
