]> code.ossystems Code Review - openembedded-core.git/commit
systemd-serialgetty: Replace sed quoting using ' with " to allow var expansion
authorGeoff Parker <geoffhp@gmail.com>
Sat, 12 Sep 2020 03:07:05 +0000 (20:07 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Sep 2020 15:23:14 +0000 (16:23 +0100)
commit80b721bfa4fe300a2f52f233f44fa2835426d304
tree6f04723885ac44b437ebe5d57733f8a13eea79ff
parent88b8b94bd2d052bca29d27bd5cd00eddb0f5999d
systemd-serialgetty: Replace sed quoting using ' with " to allow var expansion

A recent commit added single quotes around the sed regex's. This prevented the
expansion of $default_baudrate in do_install(), and ended up with systemd's'
serial-getty@.service file having a literal $default_baudrate.

This broke the serial console getty service.

serial-getty@.service 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

Fixed by repacing the single quotes with double quotes in the sed expressions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-serialgetty.bb