Signed-off-by: Hubert Feurstein <[email protected]>
---
rules/util-linux-ng.in | 12 ++++++++++++
rules/util-linux-ng.make | 3 +++
2 files changed, 15 insertions(+)
diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index a5f51a6..50dfbf6 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -200,6 +200,18 @@ config UTIL_LINUX_NG_FSCK
comment "BusyBox' fsck is selected!"
depends on BUSYBOX_FSCK
+config UTIL_LINUX_NG_FSTRIM
+ bool
+ prompt "fstrim"
+ depends on !BUSYBOX_FSTRIM || ALLYES
+ help
+ fstrim is used on a mounted filesystem to discard (or "trim")
+ blocks which are not in use by the filesystem. This is useful
+ for solid-state drives (SSDs) and thinly-provisioned storage.
+
+comment "BusyBox' fstrim is selected!"
+ depends on BUSYBOX_FSTRIM
+
config UTIL_LINUX_NG_IPCS
bool
prompt "ipcs"
diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index fc28c66..acd3b78 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -205,6 +205,9 @@ endif
ifdef PTXCONF_UTIL_LINUX_NG_FSCK
@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /sbin/fsck)
endif
+ifdef PTXCONF_UTIL_LINUX_NG_FSTRIM
+ @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /sbin/fstrim)
+endif
ifdef PTXCONF_UTIL_LINUX_NG_IPCS
@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/ipcs)
endif
--
2.3.0
--
ptxdist mailing list
[email protected]