diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-11-20 02:05:10 -0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-12-18 12:30:22 +0100 |
commit | 892c0ad6051019ec89a28147e06cdc61e42eb130 (patch) | |
tree | 89fb4d41639527042986ad5141f0ced2c776a83f | |
parent | d1a18f5db13c251daa23201fe270c843082f0e63 (diff) | |
download | meta-openembedded-892c0ad6051019ec89a28147e06cdc61e42eb130.tar.gz |
dracut: fix host-user-contaminated
Fixed:
dracut-043+giteab03540cd695d940062af5b55c02e8829aaa526: dracut: /dracut/usr/lib/dracut/modules.d/99img-lib/img-lib.sh is owned by uid 15220, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
lib32-dracut-043+giteab03540cd695d940062af5b55c02e8829aaa526: lib32-dracut: /lib32-dracut/usr/lib/dracut/modules.d/99img-lib/img-lib.sh is owned by uid 15220, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
Its Makefile uses cp -arx to install modules.d, so fix the owner
to root:root
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-initramfs/recipes-devtools/dracut/dracut_git.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb index 91a83214d..e026da710 100644 --- a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb +++ b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb | |||
@@ -36,6 +36,9 @@ do_configure() { | |||
36 | 36 | ||
37 | do_install() { | 37 | do_install() { |
38 | oe_runmake install DESTDIR=${D} | 38 | oe_runmake install DESTDIR=${D} |
39 | # Its Makefile uses cp -arx to install modules.d, so fix the owner | ||
40 | # to root:root | ||
41 | chown -R root:root ${D}/${prefix}/lib/dracut/modules.d | ||
39 | } | 42 | } |
40 | 43 | ||
41 | PACKAGES =+ "${PN}-bash-completion" | 44 | PACKAGES =+ "${PN}-bash-completion" |