summaryrefslogtreecommitdiffstats
path: root/scripts
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 15:11:36 +0100
commitb8af7c10637c14b2c226fb7063b736755ee46802 (patch)
tree3a883137e0963373ae2b057b223955a7c15b1180 /scripts
parent34ccb6b66162400c3a3164cbdcca02fc1b42c92b (diff)
downloadopenembedded-core-contrib-b8af7c10637c14b2c226fb7063b736755ee46802.tar.gz
openembedded-core-contrib-b8af7c10637c14b2c226fb7063b736755ee46802.tar.bz2
openembedded-core-contrib-b8af7c10637c14b2c226fb7063b736755ee46802.zip
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. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts')
-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():
(self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir)
exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
+ mkfs_cmd = "fsck.%s -pvfD %s || [ $? -le 3 ]" % (self.fstype, rootfs)
+ exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
+
def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir,
native_sysroot, pseudo):
"""