generic-poky/meta/recipes-core/systemd
Enrico Jorns 593dcd4a22 systemd: fix systemctl enable script for template units
The systemctl script supports enabling template units by evaluating
"DefaultInstance" parameter. Unfortunately, due to the sed replacement
mechanism, all escaping used in the DefaultInstance string, e.g. for
giving path names with dashes, is expanded too early.

Thus for

  DefaultInstance=-path\x2dwith\x2ddashes

a path unit `foobar@.path` will be installed with a symlink named

  foobar@-path-with-dashed.path

that is interpreted as the path `/path/with/dashes` instead of the
intended path nam `/path-with-dashes`.

To fix this behavior additional escaping of the backslashes in the
`DefaultInstance` string is required so that sed does not expand the
escaped characters.

(From OE-Core rev: 8b9b9fd700b19731b14a7dcc51d0fa013a5e106a)

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-30 11:37:02 +00:00
..
systemd systemd: make TEST_DIR configurable 2016-01-26 22:31:59 +00:00
systemd-serialgetty systemd-serialgetty: Disable the carrier detect requirement for serial consoles 2014-11-20 14:08:10 +00:00
systemd-systemctl systemd: fix systemctl enable script for template units 2016-01-30 11:37:02 +00:00
systemd-compat-units.bb systemd-compat-units: set S correctly 2015-07-16 15:09:22 +01:00
systemd-serialgetty.bb systemd-serialgetty: Set S to prevent QA warning 2015-07-08 00:01:18 +01:00
systemd-systemctl-native.bb meta: set proper S value 2015-01-23 11:36:27 +00:00
systemd_228.bb systemd: make TEST_DIR configurable 2016-01-26 22:31:59 +00:00