No point in storing the cache in cfgfs.
Signed-off-by: Phil Sutter <phil(a)nwl.cc>
---
package/lvm/Makefile | 4 +++-
package/lvm/files/lvm.conf | 4 ++++
2 files changed, 7 insertions(+), 1 deletion(-)
create mode 100644 package/lvm/files/lvm.conf
diff --git a/package/lvm/Makefile b/package/lvm/Makefile
index 89dfeea122ff1..82ff98a3aa66b 100644
--- a/package/lvm/Makefile
+++ b/package/lvm/Makefile
@@ -5,7 +5,7 @@ include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= lvm
PKG_VERSION:= 2.02.188
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_HASH:= 7101e8b0816ad77e4390fed9749a090214ba520061cd083437871e19e50cc9bd
PKG_DESCR:= logical volume management
PKG_SECTION:= sys/fs
@@ -52,6 +52,8 @@ lvm-install:
${INSTALL_DIR} ${IDIR_LVM}/usr/sbin
${INSTALL_BIN} ${WRKINST}/usr/sbin/lvm \
${IDIR_LVM}/usr/sbin
+ ${INSTALL_DIR} ${IDIR_LVM}/etc/
+ ${INSTALL_DATA} ./files/lvm.conf ${IDIR_LVM}/etc/
libdevmapper-install:
${INSTALL_DIR} ${IDIR_LIBDEVMAPPER}/usr/lib
diff --git a/package/lvm/files/lvm.conf b/package/lvm/files/lvm.conf
new file mode 100644
index 0000000000000..a2e77c05d0b5b
--- /dev/null
+++ b/package/lvm/files/lvm.conf
@@ -0,0 +1,4 @@
+devices {
+ # avoid constant cfgfs updates
+ write_cache_state = 0
+}
--
2.38.1