[oe-commits] [openembedded-core] 05/41: wic: partition: Run fsck on EXT file systems

git at git.openembedded.org git at git.openembedded.org
Tue Aug 29 14:13:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch morty-next
in repository openembedded-core.

commit b8af7c10637c14b2c226fb7063b736755ee46802
Author: Daniel Schultz <d.schultz at phytec.de>
AuthorDate: Mon Apr 3 09:47:55 2017 +0200

    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 at phytec.de>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 scripts/lib/wic/partition.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 3b3bd2d..ec3aa66 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):
         """

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list