mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
rootfs-post: remove traling blanks from tasks
remove the traling blanks before the ;-delimiter, so one could use "_remove" to avoid running tasks like 'rootfs_update_timestamp', which are currently hardcoded and not bound to any configurable feature flag (From OE-Core rev: 18246f0bfedb5c729a0fc5b515f25a1ed0cde191) Signed-off-by: Priyal Doshi <pdoshi@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
1b52dc0663
commit
ea56bba866
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
# Zap the root password if debug-tweaks feature is not enabled
|
# Zap the root password if debug-tweaks feature is not enabled
|
||||||
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'empty-root-password' ], "", "zap_empty_root_password ; ",d)}'
|
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'empty-root-password' ], "", "zap_empty_root_password; ",d)}'
|
||||||
|
|
||||||
# Allow dropbear/openssh to accept logins from accounts with an empty password string if debug-tweaks or allow-empty-password is enabled
|
# Allow dropbear/openssh to accept logins from accounts with an empty password string if debug-tweaks or allow-empty-password is enabled
|
||||||
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'allow-empty-password' ], "ssh_allow_empty_password; ", "",d)}'
|
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'allow-empty-password' ], "ssh_allow_empty_password; ", "",d)}'
|
||||||
@@ -12,7 +12,7 @@ ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'deb
|
|||||||
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'post-install-logging' ], "postinst_enable_logging; ", "",d)}'
|
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'post-install-logging' ], "postinst_enable_logging; ", "",d)}'
|
||||||
|
|
||||||
# Create /etc/timestamp during image construction to give a reasonably sane default time setting
|
# Create /etc/timestamp during image construction to give a reasonably sane default time setting
|
||||||
ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; "
|
ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp; "
|
||||||
|
|
||||||
# Tweak the mount options for rootfs in /etc/fstab if read-only-rootfs is enabled
|
# Tweak the mount options for rootfs in /etc/fstab if read-only-rootfs is enabled
|
||||||
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", "read_only_rootfs_hook; ", "",d)}'
|
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", "read_only_rootfs_hook; ", "",d)}'
|
||||||
@@ -26,7 +26,7 @@ ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "read-only
|
|||||||
APPEND_append = '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", " ro", "", d)}'
|
APPEND_append = '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", " ro", "", d)}'
|
||||||
|
|
||||||
# Generates test data file with data store variables expanded in json format
|
# Generates test data file with data store variables expanded in json format
|
||||||
ROOTFS_POSTPROCESS_COMMAND += "write_image_test_data ; "
|
ROOTFS_POSTPROCESS_COMMAND += "write_image_test_data; "
|
||||||
|
|
||||||
# Write manifest
|
# Write manifest
|
||||||
IMAGE_MANIFEST = "${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
|
IMAGE_MANIFEST = "${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
ROOTFS_DEBUG_FILES ?= ""
|
ROOTFS_DEBUG_FILES ?= ""
|
||||||
ROOTFS_DEBUG_FILES[doc] = "Lists additional files or directories to be installed with 'cp -a' in the format 'source1 target1;source2 target2;...'"
|
ROOTFS_DEBUG_FILES[doc] = "Lists additional files or directories to be installed with 'cp -a' in the format 'source1 target1;source2 target2;...'"
|
||||||
|
|
||||||
ROOTFS_POSTPROCESS_COMMAND += "rootfs_debug_files ;"
|
ROOTFS_POSTPROCESS_COMMAND += "rootfs_debug_files;"
|
||||||
rootfs_debug_files () {
|
rootfs_debug_files () {
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
echo "${ROOTFS_DEBUG_FILES}" | sed -e 's/;/\n/g' | while read source target mode; do
|
echo "${ROOTFS_DEBUG_FILES}" | sed -e 's/;/\n/g' | while read source target mode; do
|
||||||
|
|||||||
Reference in New Issue
Block a user