Browse Source

Allow for custom option when mounting filesystems.

This is needed for read-only systems.

Signed-off-by: Drew Moseley <drew.moseley@northern.tech>

Changelog: Title
revert-252-rm-only-tag-2.2.x
Drew Moseley 4 years ago
parent
commit
c5cdb626e2
  1. 5
      configs/mender_convert_config
  2. 2
      mender-convert-modify

5
configs/mender_convert_config

@ -36,6 +36,11 @@ MENDER_ENABLE_SYSTEMD=y
# Custom mkfs options for creating the rootfs partition
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
MENDER_ROOT_PART_FS_PASSNO="1"
# Set the fstab options for mounting the data partition
MENDER_DATA_PART_FSTAB_OPTS="defaults"

2
mender-convert-modify

@ -267,7 +267,7 @@ log_info "Using data partition device in fstab: $data_part_device"
sudo bash -c "cat <<- EOF > work/rootfs/etc/fstab
# stock fstab - you probably want to override this with a machine specific one
/dev/root / auto defaults 1 1
/dev/root / ext2 ${MENDER_ROOT_PART_FSTAB_OPTS} 1 ${MENDER_ROOT_PART_FS_PASSNO}
proc /proc proc defaults 0 0
${boot_part_device} ${boot_part_mountpoint} auto defaults,sync 0 0

Loading…
Cancel
Save