summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic
diff options
context:
space:
mode:
authorDaniel Schultz <d.schultz@phytec.de>2017-04-03 09:47:55 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-29 16:50:52 +0100
commitaf43028b3ea3fae62f3381ea7753468cfc9d8955 (patch)
tree9bfe1d9c7a3643480fb6a9bf5be54d66c1fcf838 /scripts/lib/wic
parente6a1c94eef5fd6ce74806fe6bd64a05941add9cb (diff)
downloadpoky-af43028b3ea3fae62f3381ea7753468cfc9d8955.tar.gz
wic: partition: Run fsck on EXT file systems
Mkfs may create EXT file systems which can only be optimized by fsck and not by itself, e.g. directory optimization (in Pass 3A). To prevent those optimizations during runtime, it will be performed after the creation of an EXT file system. (From OE-Core rev: b8af7c10637c14b2c226fb7063b736755ee46802) Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r--scripts/lib/wic/partition.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 3b3bd2d78f..ec3aa6622c 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -239,6 +239,9 @@ class Partition():
239 (self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir) 239 (self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir)
240 exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo) 240 exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
241 241
242 mkfs_cmd = "fsck.%s -pvfD %s || [ $? -le 3 ]" % (self.fstype, rootfs)
243 exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
244
242 def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir, 245 def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir,
243 native_sysroot, pseudo): 246 native_sysroot, pseudo):
244 """ 247 """