[OE-core] [PATCH morty v3] wic: partition: Run fsck on EXT file systems
akuster808
akuster808 at gmail.com
Mon Apr 3 14:13:19 UTC 2017
On 04/03/2017 12:47 AM, Daniel Schultz wrote:
> 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>
> ---
> Changes:
> v3: Added 'test' to avoid build failures with missing e2fsprogs backport
Ah, this might help me.
I am seeing loads of failures in oe-selftest over the weekend on my
staging changes.
thanks for the update.
- armin
>
> 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):
> """
More information about the Openembedded-core
mailing list