summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/partition.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-16 22:58:14 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:17 +0000
commit4ab4e155f87cf0d69dcd67f41a411c383e41a6ac (patch)
treeb182914d710193ae9ea71dd5af8ed6300f8f22d6 /scripts/lib/wic/partition.py
parentdc4a612e60d1155f3502c27f831ee20025df027c (diff)
downloadpoky-4ab4e155f87cf0d69dcd67f41a411c383e41a6ac.tar.gz
partition.py: use FAKEROOTCMD variable to get path to pseudo
wic used native sysroot to get path to pseudo utility. This approach doesn't work with recipe specific sysroots. Using FAKEROOTCMD should fix the issue. (From OE-Core rev: 03e051d594f285ea3c014d45e9b30028e683c602) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r--scripts/lib/wic/partition.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index aa8f8a7948..49d13277c3 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -226,7 +226,7 @@ class Partition():
226 pseudo += "export PSEUDO_LOCALSTATEDIR=%s;" % p_localstatedir 226 pseudo += "export PSEUDO_LOCALSTATEDIR=%s;" % p_localstatedir
227 pseudo += "export PSEUDO_PASSWD=%s;" % p_passwd 227 pseudo += "export PSEUDO_PASSWD=%s;" % p_passwd
228 pseudo += "export PSEUDO_NOSYMLINKEXP=%s;" % p_nosymlinkexp 228 pseudo += "export PSEUDO_NOSYMLINKEXP=%s;" % p_nosymlinkexp
229 pseudo += "%s/usr/bin/pseudo " % native_sysroot 229 pseudo += "%s " % get_bitbake_var("FAKEROOTCMD")
230 230
231 rootfs = "%s/rootfs_%s.%s.%s" % (cr_workdir, self.label, 231 rootfs = "%s/rootfs_%s.%s.%s" % (cr_workdir, self.label,
232 self.lineno, self.fstype) 232 self.lineno, self.fstype)