meta-phosphor: Fix SYSTEMD_PAGER export
The shell used to execute the bitbake scripts doesn't support `-e` for
for the echo builtin. This triggers an error upon login:
login: root
Password:
-sh: -e: command not found
root@machine#
Split the workaround into two separate `echo` invocations.
(From meta-phosphor rev: a1759c49cbd7260c072f09adf4479fcc23a294c3)
Change-Id: I8f973f44bd6682beeabfdd5c5972a0a33ae7befd
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/classes/obmc-phosphor-image.bbclass b/meta-phosphor/classes/obmc-phosphor-image.bbclass
index 4575f5b..8ce0acd 100644
--- a/meta-phosphor/classes/obmc-phosphor-image.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-image.bbclass
@@ -108,7 +108,8 @@
# Disable the pager to prevent systemd injecting control characters into the
# output stream that are not interpreted by busybox tools.
disable_systemd_pager() {
- echo -e "SYSTEMD_PAGER=\nexport SYSTEMD_PAGER" >> ${IMAGE_ROOTFS}${sysconfdir}/profile
+ echo "SYSTEMD_PAGER=" >> ${IMAGE_ROOTFS}${sysconfdir}/profile
+ echo "export SYSTEMD_PAGER" >> ${IMAGE_ROOTFS}${sysconfdir}/profile
}
ROOTFS_POSTPROCESS_COMMAND += "disable_systemd_pager ; "