diff options
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r-- | meta/classes-recipe/core-image.bbclass | 11 | ||||
-rw-r--r-- | meta/classes-recipe/image.bbclass | 2 | ||||
-rw-r--r-- | meta/classes-recipe/rootfs-postcommands.bbclass | 16 |
3 files changed, 15 insertions, 14 deletions
diff --git a/meta/classes-recipe/core-image.bbclass b/meta/classes-recipe/core-image.bbclass index 40fc15cb04..4072e420c5 100644 --- a/meta/classes-recipe/core-image.bbclass +++ b/meta/classes-recipe/core-image.bbclass | |||
@@ -26,11 +26,6 @@ | |||
26 | # - ssh-server-openssh - SSH server (openssh) | 26 | # - ssh-server-openssh - SSH server (openssh) |
27 | # - hwcodecs - Install hardware acceleration codecs | 27 | # - hwcodecs - Install hardware acceleration codecs |
28 | # - package-management - installs package management tools and preserves the package manager database | 28 | # - package-management - installs package management tools and preserves the package manager database |
29 | # - debug-tweaks - makes an image suitable for development, e.g. allowing passwordless root logins | ||
30 | # - empty-root-password | ||
31 | # - allow-empty-password | ||
32 | # - allow-root-login | ||
33 | # - post-install-logging | ||
34 | # - serial-autologin-root - with 'empty-root-password': autologin 'root' on the serial console | 29 | # - serial-autologin-root - with 'empty-root-password': autologin 'root' on the serial console |
35 | # - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs | 30 | # - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs |
36 | # - dbg-pkgs - debug symbol packages for all installed packages in the rootfs | 31 | # - dbg-pkgs - debug symbol packages for all installed packages in the rootfs |
@@ -43,6 +38,12 @@ | |||
43 | # - stateless-rootfs - systemctl-native not run, image populated by systemd at runtime | 38 | # - stateless-rootfs - systemctl-native not run, image populated by systemd at runtime |
44 | # - splash - bootup splash screen | 39 | # - splash - bootup splash screen |
45 | # | 40 | # |
41 | # Features for development purposes (previously part of debug-tweaks): | ||
42 | # - empty-root-password - the root user has no password set | ||
43 | # - allow-empty-password - users can have an empty password | ||
44 | # - allow-root-login - the root user can login | ||
45 | # - post-install-logging - log the output of postinstall scriptlets | ||
46 | # | ||
46 | FEATURE_PACKAGES_weston = "packagegroup-core-weston" | 47 | FEATURE_PACKAGES_weston = "packagegroup-core-weston" |
47 | FEATURE_PACKAGES_x11 = "packagegroup-core-x11" | 48 | FEATURE_PACKAGES_x11 = "packagegroup-core-x11" |
48 | FEATURE_PACKAGES_x11-base = "packagegroup-core-x11-base" | 49 | FEATURE_PACKAGES_x11-base = "packagegroup-core-x11-base" |
diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass index 00f1d58f23..eda3c6d0f3 100644 --- a/meta/classes-recipe/image.bbclass +++ b/meta/classes-recipe/image.bbclass | |||
@@ -40,7 +40,7 @@ INHIBIT_DEFAULT_DEPS = "1" | |||
40 | # IMAGE_FEATURES may contain any available package group | 40 | # IMAGE_FEATURES may contain any available package group |
41 | IMAGE_FEATURES ?= "" | 41 | IMAGE_FEATURES ?= "" |
42 | IMAGE_FEATURES[type] = "list" | 42 | IMAGE_FEATURES[type] = "list" |
43 | IMAGE_FEATURES[validitems] += "debug-tweaks read-only-rootfs read-only-rootfs-delayed-postinsts stateless-rootfs empty-root-password allow-empty-password allow-root-login serial-autologin-root post-install-logging overlayfs-etc" | 43 | IMAGE_FEATURES[validitems] += "read-only-rootfs read-only-rootfs-delayed-postinsts stateless-rootfs empty-root-password allow-empty-password allow-root-login serial-autologin-root post-install-logging overlayfs-etc" |
44 | 44 | ||
45 | # Generate companion debugfs? | 45 | # Generate companion debugfs? |
46 | IMAGE_GEN_DEBUGFS ?= "0" | 46 | IMAGE_GEN_DEBUGFS ?= "0" |
diff --git a/meta/classes-recipe/rootfs-postcommands.bbclass b/meta/classes-recipe/rootfs-postcommands.bbclass index 5f4d67f93c..50e77dca76 100644 --- a/meta/classes-recipe/rootfs-postcommands.bbclass +++ b/meta/classes-recipe/rootfs-postcommands.bbclass | |||
@@ -4,20 +4,20 @@ | |||
4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
5 | # | 5 | # |
6 | 6 | ||
7 | # Zap the root password if debug-tweaks and empty-root-password features are not enabled | 7 | # Zap the root password if empty-root-password feature is not enabled |
8 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'empty-root-password' ], "", "zap_empty_root_password ",d)}' | 8 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "empty-root-password", "", "zap_empty_root_password ",d)}' |
9 | 9 | ||
10 | # Allow dropbear/openssh to accept logins from accounts with an empty password string if debug-tweaks or allow-empty-password is enabled | 10 | # Allow dropbear/openssh to accept logins from accounts with an empty password string if allow-empty-password is enabled |
11 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'allow-empty-password' ], "ssh_allow_empty_password ", "",d)}' | 11 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "allow-empty-password", "ssh_allow_empty_password ", "",d)}' |
12 | 12 | ||
13 | # Allow dropbear/openssh to accept root logins if debug-tweaks or allow-root-login is enabled | 13 | # Allow dropbear/openssh to accept root logins if allow-root-login is enabled |
14 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'allow-root-login' ], "ssh_allow_root_login ", "",d)}' | 14 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "allow-root-login", "ssh_allow_root_login ", "",d)}' |
15 | 15 | ||
16 | # Autologin the root user on the serial console, if empty-root-password and serial-autologin-root are active | 16 | # Autologin the root user on the serial console, if empty-root-password and serial-autologin-root are active |
17 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", [ 'empty-root-password', 'serial-autologin-root' ], "serial_autologin_root ", "",d)}' | 17 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", [ 'empty-root-password', 'serial-autologin-root' ], "serial_autologin_root ", "",d)}' |
18 | 18 | ||
19 | # Enable postinst logging if debug-tweaks or post-install-logging is enabled | 19 | # Enable postinst logging if post-install-logging is enabled |
20 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'post-install-logging' ], "postinst_enable_logging ", "",d)}' | 20 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "post-install-logging", "postinst_enable_logging ", "",d)}' |
21 | 21 | ||
22 | # Create /etc/timestamp during image construction to give a reasonably sane default time setting | 22 | # Create /etc/timestamp during image construction to give a reasonably sane default time setting |
23 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp " | 23 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp " |