mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
wic: Fix multi images .wks with bitbake
In order to support .wks files with multiple images inside bitbake we need to explicitly set the pseudo database in use. Eg: If we try this .mks: part / --source rootfs --ondisk sda --fstype=ext4 part /export --source rootfs --rootfs=core-image-minimal-mtdutils --fstype=ext4 The username for all the files under /export will be set to the runner of bitbake (usually UID 1000). Before we run wic, we need to make sure that the pseudo database will be flushed, and contains all the data needed. Cc: Paul Barker <pbarker@konsulko.com> (From OE-Core rev: dde90a5dd2b22a539095d1bac82acc15c6380ac8) Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
90164f0f3d
commit
c58711f0ea
@@ -200,13 +200,10 @@ class Partition():
|
||||
p_prefix = os.environ.get("PSEUDO_PREFIX", "%s/usr" % native_sysroot)
|
||||
if (pseudo_dir == None):
|
||||
pseudo_dir = "%s/../pseudo" % rootfs_dir
|
||||
p_localstatedir = os.environ.get("PSEUDO_LOCALSTATEDIR", pseudo_dir)
|
||||
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 += "export PSEUDO_LOCALSTATEDIR=%s;" % pseudo_dir
|
||||
pseudo += "export PSEUDO_PASSWD=%s;" % rootfs_dir
|
||||
pseudo += "export PSEUDO_NOSYMLINKEXP=1;"
|
||||
pseudo += "%s " % get_bitbake_var("FAKEROOTCMD")
|
||||
|
||||
rootfs = "%s/rootfs_%s.%s.%s" % (cr_workdir, self.label,
|
||||
|
||||
Reference in New Issue
Block a user