]> 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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 14 Sep 2020 14:49:12 +0000 (04:49 -1000)
commit1cc94a6b9b6a9d12f782471053448ad9795944bb
tree4b3d61681a21c726deebe5daa72240b5506cca4a
parentedaecac74210ae201dc5eea5758bcf4e85cb14cb
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>
(cherry picked from commit 80b721bfa4fe300a2f52f233f44fa2835426d304)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/systemd/systemd-serialgetty.bb