]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-base: Add wic option to not update fstab
authorFabio Berton <fabio.berton@ossystems.com.br>
Wed, 28 Feb 2018 13:48:53 +0000 (10:48 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 28 Feb 2018 16:33:22 +0000 (13:33 -0300)
>From Openembedded Core commit:

commit 00420ec42140c1b752132bda190dede85756d157
Author: Fabio Berton <fabio.berton@ossystems.com.br>
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 <fabio.berton@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
conf/machine/include/imx-base.inc

index a19106b3b6d4946d9b2c4aefa78087d2c0eb0e02..831dc7a6ad4c5f6d8b31b20e1a546617ee9b5ded 100644 (file)
@@ -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}"