diff options
Diffstat (limited to 'scripts/lib/wic/partition.py')
| -rw-r--r-- | scripts/lib/wic/partition.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index d4558621a9..2178321404 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
| @@ -202,7 +202,7 @@ class Partition(): | |||
| 202 | (self.mountpoint, self.size, self.fixed_size)) | 202 | (self.mountpoint, self.size, self.fixed_size)) |
| 203 | 203 | ||
| 204 | def prepare_rootfs(self, cr_workdir, oe_builddir, rootfs_dir, | 204 | def prepare_rootfs(self, cr_workdir, oe_builddir, rootfs_dir, |
| 205 | native_sysroot): | 205 | native_sysroot, real_rootfs = True): |
| 206 | """ | 206 | """ |
| 207 | Prepare content for a rootfs partition i.e. create a partition | 207 | Prepare content for a rootfs partition i.e. create a partition |
| 208 | and fill it from a /rootfs dir. | 208 | and fill it from a /rootfs dir. |
| @@ -226,7 +226,7 @@ class Partition(): | |||
| 226 | os.remove(rootfs) | 226 | os.remove(rootfs) |
| 227 | 227 | ||
| 228 | # Get rootfs size from bitbake variable if it's not set in .ks file | 228 | # Get rootfs size from bitbake variable if it's not set in .ks file |
| 229 | if not self.size: | 229 | if not self.size and real_rootfs: |
| 230 | # Bitbake variable ROOTFS_SIZE is calculated in | 230 | # Bitbake variable ROOTFS_SIZE is calculated in |
| 231 | # Image._get_rootfs_size method from meta/lib/oe/image.py | 231 | # Image._get_rootfs_size method from meta/lib/oe/image.py |
| 232 | # using IMAGE_ROOTFS_SIZE, IMAGE_ROOTFS_ALIGNMENT, | 232 | # using IMAGE_ROOTFS_SIZE, IMAGE_ROOTFS_ALIGNMENT, |
