shadow: Make useradd work correctly with --root again
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 12 Sep 2014 15:05:00 +0000 (17:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Sep 2014 21:13:51 +0000 (22:13 +0100)
commiteee459a02d5e20d2e968e73d6eb3b30043a092a9
tree0b42f8b3e6459df14e20df3dc59fe0c116075ae8
parent8fdf841c560ac212463dcf4c4255d0385b5feff0
shadow: Make useradd work correctly with --root again

Even if useradd --root <root> is used it would still read login.defs
before doing the chroot() and thus use the one provided by the host
rather than the sysroot.

(From OE-Core rev: b85917a4ebe636316fa7305017cd32a47b392039)

(From OE-Core rev: 0af59a04135f067f0e01883defa77c6f714eab2e)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/shadow/files/0001-Do-not-read-login.defs-before-doing-chroot.patch [new file with mode: 0644]
meta/recipes-extended/shadow/shadow.inc