]> code.ossystems Code Review - openembedded-core.git/commit
image.bbclass: search both rootfs and native staging for passwd files
authorPeter A. Bigot <pab@pabigot.com>
Sat, 15 Nov 2014 04:58:16 +0000 (22:58 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Dec 2014 10:17:29 +0000 (10:17 +0000)
commit185b38b5e9ae22e5ba66bd2edc54f3971a9c97cf
treed89d6f7afa1467c25c7ed03c05cfccdf989b6da8
parent31a8d1a14f39908ad1aa855434893994a127a19e
image.bbclass: search both rootfs and native staging for passwd files

When pseudo is configured to disallow fallback to the build host
/etc/hosts and /etc/group, the selection of ${IMAGE_ROOT} for
PSEUDO_PASSWD is insufficient as the necessary files will not be
available until base-passwd has been installed and its pkg_postinst
script run.  Fall back to the ${STAGING_DIR_NATIVE} version of those
files until the rootfs versions are available.  (The native copies are
never modified by the build; the ones in ${STAGING_DIR_TARGET} are
updated and may contain settings not consistent with what would be
created by post-install useradd/groupadd commands invoked in the image
rootfs.

(From OE-Core rev: 8c653bafaa32126c54400bb56b9a94f07cd33197)

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/image.bbclass