From: Geoff Parker <[email protected]>

This reverts commit 12d0fdd9c990bdc67bf6c8fd2d269cb766069ea5.

Adding quotes around sed string treats $default_baudrate as a literal
rather than a variable substitution in the do_install function.
Breaks the systemd [email protected] file and
serial console getty.

[email protected] was getting a line which looked like this:

  ExecStart=-/sbin/agetty -8 -L %I $default_baudrate $TERM

Rather than:

  ExecStart=-/sbin/agetty -8 -L %I 115200 $TERM

Signed-off-by: Geoff Parker <[email protected]>
---
 meta/recipes-core/systemd/systemd-serialgetty.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd-serialgetty.bb 
b/meta/recipes-core/systemd/systemd-serialgetty.bb
index 059fccc2b6..044c6c5b67 100644
--- a/meta/recipes-core/systemd/systemd-serialgetty.bb
+++ b/meta/recipes-core/systemd/systemd-serialgetty.bb
@@ -21,7 +21,7 @@ do_install() {
                install -d ${D}${systemd_unitdir}/system/
                install -d ${D}${sysconfdir}/systemd/system/getty.target.wants/
                install -m 0644 ${WORKDIR}/[email protected] 
${D}${systemd_unitdir}/system/
-               sed -i -e 's/\@BAUDRATE\@/$default_baudrate/g' 
${D}${systemd_unitdir}/system/[email protected]
+               sed -i -e s/\@BAUDRATE\@/$default_baudrate/g 
${D}${systemd_unitdir}/system/[email protected]
 
                tmp="${SERIAL_CONSOLES}"
                for entry in $tmp ; do
-- 
2.20.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#142445): 
https://lists.openembedded.org/g/openembedded-core/message/142445
Mute This Topic: https://lists.openembedded.org/mt/76792280/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to