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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 286c7867cb..f59eceb23d 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -54,6 +54,7 @@ class Partition():
54 self.uuid = args.uuid 54 self.uuid = args.uuid
55 self.fsuuid = args.fsuuid 55 self.fsuuid = args.fsuuid
56 self.type = args.type 56 self.type = args.type
57 self.updated_fstab_path = None
57 58
58 self.lineno = lineno 59 self.lineno = lineno
59 self.source_file = "" 60 self.source_file = ""
@@ -118,11 +119,13 @@ class Partition():
118 return self.fixed_size if self.fixed_size else self.size 119 return self.fixed_size if self.fixed_size else self.size
119 120
120 def prepare(self, creator, cr_workdir, oe_builddir, rootfs_dir, 121 def prepare(self, creator, cr_workdir, oe_builddir, rootfs_dir,
121 bootimg_dir, kernel_dir, native_sysroot): 122 bootimg_dir, kernel_dir, native_sysroot, updated_fstab_path):
122 """ 123 """
123 Prepare content for individual partitions, depending on 124 Prepare content for individual partitions, depending on
124 partition command parameters. 125 partition command parameters.
125 """ 126 """
127 self.updated_fstab_path = updated_fstab_path
128
126 if not self.source: 129 if not self.source:
127 if not self.size and not self.fixed_size: 130 if not self.size and not self.fixed_size:
128 raise WicError("The %s partition has a size of zero. Please " 131 raise WicError("The %s partition has a size of zero. Please "