[oe-commits] [openembedded-core] 15/38: wic: Fix a path to a psuedo state directory (PSEUDO_LOCALSTATEDIR).

git at git.openembedded.org git at git.openembedded.org
Thu Dec 21 16:27:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

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

commit 2e1202d381115f843d772de54c2caaef16d6537c
Author: Adrian Fiergolski <adrian.fiergolski at cern.ch>
AuthorDate: Mon Dec 11 18:08:26 2017 +0100

    wic: Fix a path to a psuedo state directory (PSEUDO_LOCALSTATEDIR).
    
    In case of 'new_rootfs' the psuedo directory is not copied. Thus
    PSEUDO_LOCALSTATEDIR should still point to the dsa
    'native_sysroot'/../pseudo. Otherwise PSEUDO_LOCALSTATEDIR points to a not
    existing director ('new_rootfs'/../pseudo) and UID and GUID attributes are not
    applied to files of the image.
    
    Signed-off-by: Adrian Fiergolski <adrian.fiergolski at cern.ch>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/lib/wic/partition.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index c0b67d8..72f2e27 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -208,7 +208,7 @@ class Partition():
         """
         p_prefix = os.environ.get("PSEUDO_PREFIX", "%s/usr" % native_sysroot)
         p_localstatedir = os.environ.get("PSEUDO_LOCALSTATEDIR",
-                                         "%s/../pseudo" % rootfs_dir)
+                                         "%s/../pseudo" %  get_bitbake_var("IMAGE_ROOTFS"))
         p_passwd = os.environ.get("PSEUDO_PASSWD", rootfs_dir)
         p_nosymlinkexp = os.environ.get("PSEUDO_NOSYMLINKEXP", "1")
         pseudo = "export PSEUDO_PREFIX=%s;" % p_prefix

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


More information about the Openembedded-commits mailing list