summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/partition.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r--scripts/lib/wic/partition.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 2d95f78439..b02711be37 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -190,7 +190,7 @@ class Partition():
190 (self.mountpoint, self.size, self.fixed_size)) 190 (self.mountpoint, self.size, self.fixed_size))
191 191
192 def prepare_rootfs(self, cr_workdir, oe_builddir, rootfs_dir, 192 def prepare_rootfs(self, cr_workdir, oe_builddir, rootfs_dir,
193 native_sysroot, real_rootfs = True): 193 native_sysroot, real_rootfs = True, pseudo_dir = None):
194 """ 194 """
195 Prepare content for a rootfs partition i.e. create a partition 195 Prepare content for a rootfs partition i.e. create a partition
196 and fill it from a /rootfs dir. 196 and fill it from a /rootfs dir.
@@ -198,8 +198,9 @@ class Partition():
198 Currently handles ext2/3/4, btrfs, vfat and squashfs. 198 Currently handles ext2/3/4, btrfs, vfat and squashfs.
199 """ 199 """
200 p_prefix = os.environ.get("PSEUDO_PREFIX", "%s/usr" % native_sysroot) 200 p_prefix = os.environ.get("PSEUDO_PREFIX", "%s/usr" % native_sysroot)
201 p_localstatedir = os.environ.get("PSEUDO_LOCALSTATEDIR", 201 if (pseudo_dir == None):
202 "%s/../pseudo" % rootfs_dir) 202 pseudo_dir = "%s/../pseudo" % rootfs_dir
203 p_localstatedir = os.environ.get("PSEUDO_LOCALSTATEDIR", pseudo_dir)
203 p_passwd = os.environ.get("PSEUDO_PASSWD", rootfs_dir) 204 p_passwd = os.environ.get("PSEUDO_PASSWD", rootfs_dir)
204 p_nosymlinkexp = os.environ.get("PSEUDO_NOSYMLINKEXP", "1") 205 p_nosymlinkexp = os.environ.get("PSEUDO_NOSYMLINKEXP", "1")
205 pseudo = "export PSEUDO_PREFIX=%s;" % p_prefix 206 pseudo = "export PSEUDO_PREFIX=%s;" % p_prefix