Disable metadata_csum when generating ext4 rootfs (#1367)

Some downstream kernels don't support this, and this recently became
the default in e2fsprogs.
This commit is contained in:
Oliver Smith 2018-03-28 18:00:18 +00:00 committed by GitHub
parent 941cb4d44f
commit 491ee6b1c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 6 deletions

View file

@ -58,7 +58,11 @@ def format_and_mount_pm_crypt(args):
# Format
if not args.rsync:
logging.info("(native) format " + device)
pmb.chroot.root(args, ["mkfs.ext4", "-F", "-q", "-L", "pmOS_root", device])
# Some downstream kernels don't support metadata_csum (#1364).
# When changing the options of mkfs.ext4, also change them in the
# recovery zip code (see 'grep -r mkfs\.ext4')!
pmb.chroot.root(args, ["mkfs.ext4", "-O", "^metadata_csum", "-F",
"-q", "-L", "pmOS_root", device])
# Mount
mountpoint = "/mnt/install"