summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-10-30 10:22:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-03 17:40:41 +0000
commit7eefb05a15d87eccc57ad64cfaf354e29e1ad632 (patch)
tree1539b28bad789895c0e24b2dd7d063c7d00e84e9 /meta
parentdb1ba50813ce325dfe4598010b0a8a9237e28eb8 (diff)
downloadpoky-7eefb05a15d87eccc57ad64cfaf354e29e1ad632.tar.gz
fragments: add a 'root-login-with-empty-password' fragment
Please see this for background/some discussion: https://lists.openembedded.org/g/openembedded-architecture/topic/115913545 Care should be taken to not enable this by default, and especially not for production images. Poky and oe-core default templates did it, and it was not a good starting point. Hopefully the fragment name, and the description that users will see when enabling the fragment will provide enough warning. (From OE-Core rev: e135458415dea5bbc4651e05dafe0b6903b65751) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/conf/fragments/yocto/root-login-with-empty-password.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/conf/fragments/yocto/root-login-with-empty-password.conf b/meta/conf/fragments/yocto/root-login-with-empty-password.conf
new file mode 100644
index 0000000000..86aec0e152
--- /dev/null
+++ b/meta/conf/fragments/yocto/root-login-with-empty-password.conf
@@ -0,0 +1,10 @@
1BB_CONF_FRAGMENT_SUMMARY = "Log in as root without password on serial console and over ssh (use with caution)."
2BB_CONF_FRAGMENT_DESCRIPTION = "By default images are built such that root login is disabled \
3(which is the preferred, secure default). However, for testing and development purposes it can \
4be beneficial to be able to log in as root, both on serial console and over ssh connections, \
5which is what this fragment enables. Use with great caution, and ideally only in tightly \
6controlled local builds and CI testing environments, and never in artefacts that are deployed \
7into products. \
8"
9
10EXTRA_IMAGE_FEATURES += "allow-empty-password empty-root-password allow-root-login"