Browse Source

Merge pull request #233 from mendersoftware/master

[2.2.x] Merge in master
revert-252-rm-only-tag-2.2.x
Lluis Campos 4 years ago
committed by GitHub
parent
commit
7714e1d262
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      configs/mender_convert_config
  2. 8
      mender-convert-modify

3
configs/mender_convert_config

@ -38,7 +38,8 @@ MENDER_ROOT_PART_MKFS_OPTS=""
# Set the fstab options for mounting the root partition
MENDER_ROOT_PART_FSTAB_OPTS="defaults"
# Set to 0 to disable fsck; needed for read-only rootfs support
# Set to 0 to disable fsck; recommended for read-only rootfs
MENDER_ROOT_PART_FS_PASSNO="1"
# Set the fstab options for mounting the data partition

8
mender-convert-modify

@ -261,6 +261,14 @@ if [ "${MENDER_DATA_PART_GROWFS}" == "y" ]; then
MENDER_DATA_PART_FSTAB_OPTS="${MENDER_DATA_PART_FSTAB_OPTS},x-systemd.growfs"
fi
if echo ${MENDER_ROOT_PART_FSTAB_OPTS} | tr ',' '\n' | egrep -q "^ro$"; then
if ! echo "${MENDER_ROOT_PART_MKFS_OPTS}" | fgrep -q -- "-O ^64bit"; then
log_warn "EXT4 64bits feature is known to create unstable checksums on read-only file systems, add \"-O ^64bit\" to MENDER_ROOT_PART_MKFS_OPTS to remove it"
fi
if ! echo "${MENDER_ROOT_PART_MKFS_OPTS}" | fgrep -q -- "-O ^has_journal"; then
log_warn "EXT4 journal feature is known to create unstable checksums on read-only file systems, add \"-O ^has_journal\" to MENDER_ROOT_PART_MKFS_OPTS to remove it"
fi
fi
log_info "Using boot partition device in fstab: $boot_part_device"
log_info "Using data partition device in fstab: $data_part_device"

Loading…
Cancel
Save