]> code.ossystems Code Review - openembedded-core.git/commit
useradd-statids.bbclass: Add support for -P / --clear-password option
authorMark Hatle <mark.hatle@windriver.com>
Thu, 27 Apr 2017 19:41:04 +0000 (14:41 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Apr 2017 08:16:02 +0000 (09:16 +0100)
commita1715970d5c454dd24d04972ffb9cf735b5d1338
tree1b40aa60b71e1f3aca4a201d4622bcbb0d4043ff
parente584be78f92ee6f08f570c239698d56ac78d05f9
useradd-statids.bbclass: Add support for -P / --clear-password option

The commit 31dee7946340bf0f1e94e4e714191d3d6ca3bf6a added a new useradd and
groupadd option to specify a clear text password.  The parsing logic in the
useradd-staticid class did not understand this new option.  If the
meta-skeleton examples were run with the class enabled an error would be
generated, as an example uses the -P option.

Note, the code has a check that we do not attempt to set both a crypt and
clear text password.  It is not allowed that these two options are set
at the same time, so we prefer the crypt option if they happen to be.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/useradd-staticids.bbclass