From 8feb8beca100ff07029759832d4dc51bb3e2573e Mon Sep 17 00:00:00 2001 From: Fabio Berton Date: Wed, 28 Feb 2018 10:48:53 -0300 Subject: [PATCH] imx-base: Add wic option to not update fstab >From Openembedded Core commit: commit 00420ec42140c1b752132bda190dede85756d157 Author: Fabio Berton Date: Wed Apr 19 13:42:47 2017 -0300 wic: Add option to not change fstab Create an option to wic doesn't change fstab file, the final fstab file will be same that in rootfs and wic doesn't update file, e.g adding a new mount point. Users can control the fstab file content in base-files recipe. This is useful if you want to only create an partition but not add fstab mount point or add new mount point using label e.g: LABEL=recovery /recovery auto defaults 0 1 Signed-off-by: Fabio Berton Signed-off-by: Richard Purdie This change is useful to avoid duplicate entries on final image fstab, and system will not mount partitions that doesn't exist. Signed-off-by: Fabio Berton Signed-off-by: Otavio Salvador --- conf/machine/include/imx-base.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index a19106b3..831dc7a6 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc @@ -237,6 +237,9 @@ PREFERRED_PROVIDER_virtual/kernel ??= "${IMX_DEFAULT_KERNEL}" SOC_DEFAULT_IMAGE_FSTYPES = "wic.gz" SOC_DEFAULT_IMAGE_FSTYPES_mxs = "uboot-mxsboot-sdcard wic.gz" +# Do not update fstab file when using wic images +WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update" + SDCARD_ROOTFS ?= "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.ext4" IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}" -- 2.40.1