The mounting flags and the extra mounting options are available
in the menuconfig.

Signed-off-by: Pierre Lebleu <pme.leb...@gmail.com>
---
 package/system/fstools/Makefile | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile
index 494f90d..d85ad81 100644
--- a/package/system/fstools/Makefile
+++ b/package/system/fstools/Makefile
@@ -33,6 +33,8 @@ include $(INCLUDE_DIR)/cmake.mk
 
 TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
 CMAKE_OPTIONS += $(if $(CONFIG_FSTOOLS_UBIFS_EXTROOT),-DCMAKE_UBIFS_EXTROOT=y)
+CMAKE_OPTIONS += $(if 
$(CONFIG_FSTOOLS_OVL_MOUNT_OPTION),-DCMAKE_OVL_MOUNT_OPTION=$(CONFIG_FSTOOLS_OVL_MOUNT_OPTION))
+CMAKE_OPTIONS += $(if 
$(CONFIG_FSTOOLS_OVL_MOUNT_FLAGS),-DCMAKE_OVL_MOUNT_FLAGS=$(CONFIG_FSTOOLS_OVL_MOUNT_FLAGS))
 
 define Package/fstools
   SECTION:=base
@@ -50,6 +52,20 @@ define Package/fstools/config
                default y
                help
                        This option makes it possible to use extroot 
functionality if the root filesystem resides on an UBIFS partition
+
+       config FSTOOLS_OVL_MOUNT_FLAGS
+               depends on PACKAGE_fstools
+               string "Mounting flag option for the overlay filesystem"
+               default MS_NOATIME
+               help
+                       This option makes it possible to set the option flags 
when the overlay system is mounted.
+
+       config FSTOOLS_OVL_MOUNT_OPTION
+               depends on PACKAGE_fstools
+               string "Extra mounting option for the overlay filesystem"
+               default NULL
+               help
+                       This option makes it possible to give extra option when 
the overlay system is mounted.
 endef
 
 define Package/snapshot-tool
-- 
1.9.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.infradead.org/mailman/listinfo/openwrt-devel

Reply via email to