[oe-commits] [openembedded-core] 09/18: systemd: chown hwdb.bin to root:root for do_rootfs

git at git.openembedded.org git at git.openembedded.org
Mon Apr 11 21:03:58 UTC 2016


rpurdie pushed a commit to branch jethro
in repository openembedded-core.

commit 36eb5b6e75361053b5dd00652df6361499d8a645
Author: Christopher Larson <chris_larson at mentor.com>
AuthorDate: Mon Apr 11 00:29:12 2016 -0700

    systemd: chown hwdb.bin to root:root for do_rootfs
    
    This is created by qemu for the do_rootfs case, which bypasses pseudo, so we
    need to correct the ownership. This fixes a warning issued by
    rootfs_check_host_user_contaminated.
    
    (From OE-Core master rev: 4ff6b8cadec10e17dbf884a873a227e29944f5d1)
    
    Signed-off-by: Christopher Larson <chris_larson at mentor.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-core/systemd/systemd_225.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/systemd/systemd_225.bb b/meta/recipes-core/systemd/systemd_225.bb
index 7c66ba2..9346260 100644
--- a/meta/recipes-core/systemd/systemd_225.bb
+++ b/meta/recipes-core/systemd/systemd_225.bb
@@ -402,6 +402,7 @@ pkg_postinst_udev-hwdb () {
 	if test -n "$D"; then
 		${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \
 			--root $D
+		chown root:root $D${sysconfdir}/udev/hwdb.bin
 	else
 		udevadm hwdb --update
 	fi

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list