[OE-core] [PATCH 1/1] wic: add pseudo to the populate-extfs step

Darren Hart dvhart at linux.intel.com
Wed Oct 16 21:13:54 UTC 2013


On Wed, 2013-10-16 at 15:25 -0500, Tom Zanussi wrote:
> Without this, files in the generated filesystem pick up the wrong
> ownership.
> 
> Signed-off-by: Tom Zanussi <tom.zanussi at linux.intel.com>
> ---
>  scripts/lib/mic/kickstart/custom_commands/partition.py | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/mic/kickstart/custom_commands/partition.py
> index 302cace..0eb0671 100644
> --- a/scripts/lib/mic/kickstart/custom_commands/partition.py
> +++ b/scripts/lib/mic/kickstart/custom_commands/partition.py
> @@ -216,7 +216,14 @@ class Wic_PartData(Mic_PartData):
>          """
>          Prepare content for an ext2/3/4 rootfs partition.
>          """
> -        populate_script = "%s/usr/bin/populate-extfs.sh" % native_sysroot
> +        populate_script = "export PSEUDO_PREFIX=%s/usr;" % native_sysroot
> +        populate_script += "export PSEUDO_LOCALSTATEDIR=%s/../pseudo;" % rootfs_dir
> +        populate_script += "export PSEUDO_PASSWD=%s;" % rootfs_dir
> +        populate_script += "export PSEUDO_NOSYMLINKEXP=1;"
> +        populate_script += "export PSEUDO_DISABLED=0;"
> +        populate_script += "%s/usr/bin/pseudo %s/usr/bin/populate-extfs.sh" % \
> +            (native_sysroot, native_sysroot)
> +
>          image_extra_space = 10240
>  
>          image_rootfs = rootfs_dir

This resolved the failure to login permissions issue.

Acked-by: Darren Hart <dvhart at linux.intel.com>

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel





More information about the Openembedded-core mailing list