mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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) (From OE-Core rev: 36eb5b6e75361053b5dd00652df6361499d8a645) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
909cf62394
commit
3f54d40e23
@@ -402,6 +402,7 @@ pkg_postinst_udev-hwdb () {
|
|||||||
if test -n "$D"; then
|
if test -n "$D"; then
|
||||||
${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \
|
${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \
|
||||||
--root $D
|
--root $D
|
||||||
|
chown root:root $D${sysconfdir}/udev/hwdb.bin
|
||||||
else
|
else
|
||||||
udevadm hwdb --update
|
udevadm hwdb --update
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user