Browse Source

local.conf.sample: use explicit IMAGE_FEATURES instead of debug-tweaks

debug-tweaks is vague and doesn't give any indication that the root user
can login over SSH without a password.  This behaviour is incredibly
dangerous if used unwittingly, so discourage it by using the underlying
features explicitly to spell out exactly what is being done.

This is not the complete set of features that debug-tweaks enables,
but I don't think we need to enable serial-autologin-root or
post-install-logging by default.

(From meta-yocto rev: 96d453fd54e10d02a603d40536f0ac22f5da6961)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton 7 tháng trước cách đây
mục cha
commit
7545dc3af8
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      meta-poky/conf/templates/default/local.conf.sample

+ 2 - 2
meta-poky/conf/templates/default/local.conf.sample

@@ -145,8 +145,8 @@ DISTRO ?= "poky"
 # There are other application targets that can be used here too, see
 # meta/classes-recipe/image.bbclass and
 # meta/classes-recipe/core-image.bbclass for more details.
-# We default to enabling the debugging tweaks.
-EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
+# We default to allowing root login without a password for convenience.
+EXTRA_IMAGE_FEATURES ?= "allow-empty-password empty-root-password allow-root-login"
 
 #
 # Additional image features