diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-05-17 21:20:15 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-27 09:05:57 +0100 |
commit | 2ea93e2b1db4a825543e37e68121d63a71c7d6b3 (patch) | |
tree | a7e0aecb2949a06c4a8c8b77386d5b9e9a43c187 /meta/classes/kernel-fitimage.bbclass | |
parent | 2b330e5439caa75387dafa90c0315e0fa693eec9 (diff) | |
download | poky-2ea93e2b1db4a825543e37e68121d63a71c7d6b3.tar.gz |
useradd.bbclass: Strip trailing ';' in cmd params
When there are more than 1 packages in a recipe requiring useradd
services, they are concatnated and a ';' is inserted just after
each of the users being added by the packages. A situation arises
in cases where this is controlled by PACKAGECONFIG then we add a
';' separator in the USERADD_PARAM value itself for each packagecofig
since we do not know which one will be picked, we end up in situation
where the final string returned from get_all_cmd_params() appears to be
a; ; b; c;
and then the logic which uses these cmds triggers with ';' as separator
but in this case it will fail after executing useradd 'a' because the next
cmd it will call will be just a whitespace
This is highlighted by the systemd patch to add more users as needed
by systemd 229 components.
(From OE-Core rev: e8d4356c38e3c2aacd6dc49231c73bcb7d597308)
(From OE-Core rev: 4f69a4be79e17ef009351c447694e46b5cb517c2)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-fitimage.bbclass')
0 files changed, 0 insertions, 0 deletions