]> code.ossystems Code Review - openembedded-core.git/commitdiff
partition.py: use FAKEROOTCMD variable to get path to pseudo
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 16 Jan 2017 20:58:14 +0000 (22:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Jan 2017 12:03:51 +0000 (12:03 +0000)
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.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
scripts/lib/wic/partition.py

index aa8f8a79486b00b99fc43153fda93e654adfd1d9..49d13277c3f2d663675e13b5565be4f0eee6d36b 100644 (file)
@@ -226,7 +226,7 @@ class Partition():
         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 " % get_bitbake_var("FAKEROOTCMD")
 
         rootfs = "%s/rootfs_%s.%s.%s" % (cr_workdir, self.label,
                                          self.lineno, self.fstype)