From f4d0c5cbfe332d5932827709d1d4ca96d1968036 Mon Sep 17 00:00:00 2001 From: Serhii Kostiuk Date: Wed, 31 Aug 2022 15:20:11 +0300 Subject: Manufacturing - MTCDT - Create mountpoints at build time fstab can't mount the partitions on the first boot if the mountpoint does not exist. Create the mountpoints at build time so that fstab can mount the partitions on the first try. Required for the next commits with customizations for SDMFG. Also: Having the mountpoints pre-created is beneficial for devices with read-only root file systems (like MTR with mPower). This solution is actually ported from mPower: https://gitlab.multitech.net/multitech/meta-mts-device/blob/0f8b5467c662a1be59a2ee5adc91b7c99aa87497/recipes-core/base-files/base-files_3.0.14.bbappend. --- recipes-core/base-files/base-files_3.0.14.bbappend | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'recipes-core') diff --git a/recipes-core/base-files/base-files_3.0.14.bbappend b/recipes-core/base-files/base-files_3.0.14.bbappend index 74fb040..c4b642d 100644 --- a/recipes-core/base-files/base-files_3.0.14.bbappend +++ b/recipes-core/base-files/base-files_3.0.14.bbappend @@ -1,9 +1,14 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -PR = "m3" +PR = "m4" CONFFILES_${PN}_remove = "${sysconfdir}/fstab" FILES_${PN}_remove = "${sysconfdir}/fstab" +# Create folders for generic mountpoints at build time +dirs755_append = " /var/config \ + /var/oem \ + " + do_install_append() { if [ -d ${D}/media ] ; then rmdir ${D}/media # So the next line does not nest the media link inside of media -- cgit v1.2.3