diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 4f077082da..04db533128 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -175,6 +175,10 @@ MACHINE_POSTPROCESS_COMMAND ?= "" | |||
175 | ROOTFS_POSTPROCESS_COMMAND_prepend = "run_intercept_scriptlets; " | 175 | ROOTFS_POSTPROCESS_COMMAND_prepend = "run_intercept_scriptlets; " |
176 | # Allow dropbear/openssh to accept logins from accounts with an empty password string if debug-tweaks is enabled | 176 | # Allow dropbear/openssh to accept logins from accounts with an empty password string if debug-tweaks is enabled |
177 | ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "ssh_allow_empty_password; ", "",d)}' | 177 | ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "ssh_allow_empty_password; ", "",d)}' |
178 | # Enable postinst logging if debug-tweaks is enabled | ||
179 | ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "postinst_enable_logging; ", "",d)}' | ||
180 | # Set default postinst log file | ||
181 | POSTINST_LOGFILE ?= "${localstatedir}/log/postinstall.log" | ||
178 | 182 | ||
179 | # some default locales | 183 | # some default locales |
180 | IMAGE_LINGUAS ?= "de-de fr-fr en-gb" | 184 | IMAGE_LINGUAS ?= "de-de fr-fr en-gb" |
@@ -484,6 +488,13 @@ ssh_allow_empty_password () { | |||
484 | fi | 488 | fi |
485 | } | 489 | } |
486 | 490 | ||
491 | # Enable postinst logging if debug-tweaks is enabled | ||
492 | postinst_enable_logging () { | ||
493 | mkdir -p ${IMAGE_ROOTFS}${sysconfdir}/default | ||
494 | echo "POSTINST_LOGGING=1" >> ${IMAGE_ROOTFS}${sysconfdir}/default/postinst | ||
495 | echo "LOGFILE=${POSTINST_LOGFILE}" >> ${IMAGE_ROOTFS}${sysconfdir}/default/postinst | ||
496 | } | ||
497 | |||
487 | # Turn any symbolic /sbin/init link into a file | 498 | # Turn any symbolic /sbin/init link into a file |
488 | remove_init_link () { | 499 | remove_init_link () { |
489 | if [ -h ${IMAGE_ROOTFS}/sbin/init ]; then | 500 | if [ -h ${IMAGE_ROOTFS}/sbin/init ]; then |