diff options
Diffstat (limited to 'meta-phosphor/classes/obmc-phosphor-image.bbclass')
-rw-r--r-- | meta-phosphor/classes/obmc-phosphor-image.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-image.bbclass b/meta-phosphor/classes/obmc-phosphor-image.bbclass index b428205ab..8ce0acd52 100644 --- a/meta-phosphor/classes/obmc-phosphor-image.bbclass +++ b/meta-phosphor/classes/obmc-phosphor-image.bbclass @@ -105,6 +105,14 @@ remove_etc_version() { } ROOTFS_POSTPROCESS_COMMAND += "remove_etc_version ; " +# Disable the pager to prevent systemd injecting control characters into the +# output stream that are not interpreted by busybox tools. +disable_systemd_pager() { + echo "SYSTEMD_PAGER=" >> ${IMAGE_ROOTFS}${sysconfdir}/profile + echo "export SYSTEMD_PAGER" >> ${IMAGE_ROOTFS}${sysconfdir}/profile +} +ROOTFS_POSTPROCESS_COMMAND += "disable_systemd_pager ; " + # The shadow recipe provides the binaries(like useradd, usermod) needed by the # phosphor-user-manager. ROOTFS_RO_UNNEEDED_remove = "shadow" |