mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
wic: Consider PSEUDO_* environment variables
Used default values of PSEUDO_* environment variables only if variables are not set. This allows to set custom PSEUDO_PREFIX and other pseudo variables in order to use pseudo database from non-standard locations. Change-Id: I0bc1af5e521121d1f96d590cb6edb23cf0cb0b83 (From OE-Core rev: cd121c06e9de8951d507998be443f95f0edc246a) Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
40d3d7a23a
commit
35fbb0f470
@@ -193,10 +193,15 @@ class Wic_PartData(Mic_PartData):
|
|||||||
|
|
||||||
Currently handles ext2/3/4, btrfs and vfat.
|
Currently handles ext2/3/4, btrfs and vfat.
|
||||||
"""
|
"""
|
||||||
pseudo = "export PSEUDO_PREFIX=%s/usr;" % native_sysroot
|
p_prefix = os.environ.get("PSEUDO_PREFIX", "%s/usr" % native_sysroot)
|
||||||
pseudo += "export PSEUDO_LOCALSTATEDIR=%s/../pseudo;" % rootfs_dir
|
p_localstatedir = os.environ.get("PSEUDO_LOCALSTATEDIR",
|
||||||
pseudo += "export PSEUDO_PASSWD=%s;" % rootfs_dir
|
"%s/../pseudo" % rootfs_dir)
|
||||||
pseudo += "export PSEUDO_NOSYMLINKEXP=1;"
|
p_passwd = os.environ.get("PSEUDO_PASSWD", rootfs_dir)
|
||||||
|
p_nosymlinkexp = os.environ.get("PSEUDO_NOSYMLINKEXP", "1")
|
||||||
|
pseudo = "export PSEUDO_PREFIX=%s;" % p_prefix
|
||||||
|
pseudo += "export PSEUDO_LOCALSTATEDIR=%s;" % p_localstatedir
|
||||||
|
pseudo += "export PSEUDO_PASSWD=%s;" % p_passwd
|
||||||
|
pseudo += "export PSEUDO_NOSYMLINKEXP=%s;" % p_nosymlinkexp
|
||||||
pseudo += "%s/usr/bin/pseudo " % native_sysroot
|
pseudo += "%s/usr/bin/pseudo " % native_sysroot
|
||||||
|
|
||||||
if self.fstype.startswith("ext"):
|
if self.fstype.startswith("ext"):
|
||||||
|
|||||||
Reference in New Issue
Block a user