From: Christopher Larson Date: Wed, 11 Nov 2015 05:34:01 +0000 (-0700) Subject: systemd: chown hwdb.bin to root:root for do_rootfs X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~28344 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ff6b8cadec10e17dbf884a873a227e29944f5d1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Christopher Larson Signed-off-by: Ross Burton --- diff --git a/meta/recipes-core/systemd/systemd_225.bb b/meta/recipes-core/systemd/systemd_225.bb index ea964131fb3..0e89d221a8d 100644 --- a/meta/recipes-core/systemd/systemd_225.bb +++ b/meta/recipes-core/systemd/systemd_225.bb @@ -411,6 +411,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