소스 검색

base-files: add usage warning to motd

The Poky distro is explicitly a _reference_ distribution for _testing_
and _development_ purposes.  It enables most hardware and software
features so that they can be tested, but this also means that
from a security point of view the attack surface is very large.

We encourage anyone using OpenEmbedded for production use to create their
own distribution and not use Poky.  To encourage this behaviour further,
add a warning to /etc/motd when Poky is used so the developer will see it
when they log in.

(From meta-yocto rev: 2e0cec1e9d97f78ba015da8812fd1888c47debcb)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton 1 년 전
부모
커밋
a226865c86
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      meta-poky/recipes-core/base-files/base-files_%.bbappend
  2. 5 0
      meta-poky/recipes-core/base-files/files/poky/motd

+ 1 - 0
meta-poky/recipes-core/base-files/base-files_%.bbappend

@@ -0,0 +1 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

+ 5 - 0
meta-poky/recipes-core/base-files/files/poky/motd

@@ -0,0 +1,5 @@
+
+WARNING: Poky is a reference Yocto Project distribution that should be used for
+testing and development purposes only. It is recommended that you create your
+own distribution for production use.
+