summaryrefslogtreecommitdiff
path: root/recipes-core/util-linux/util-linux/fstrim.service
diff options
context:
space:
mode:
authorDenys Drozdov <denys.drozdov@toradex.com>2021-07-21 18:16:33 +0300
committerDenys Drozdov <denys.drozdov@toradex.com>2021-07-22 11:08:10 +0300
commit4ecee0bd7785f3132c85a1de2ef7ab6e7da955c2 (patch)
tree87ea5610941c9987dce88230917bc5becac89067 /recipes-core/util-linux/util-linux/fstrim.service
parentf086646d01378903661c5ac8d1925dc855540040 (diff)
util-linux: add separate bbappend to support fstrim service
fstrim.service is disabled by default in openembedded-core layer. Add bbappend file to support fstrim.service for systemd Related-to: ELB-2356 Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
Diffstat (limited to 'recipes-core/util-linux/util-linux/fstrim.service')
-rw-r--r--recipes-core/util-linux/util-linux/fstrim.service7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-core/util-linux/util-linux/fstrim.service b/recipes-core/util-linux/util-linux/fstrim.service
new file mode 100644
index 0000000..5c89027
--- /dev/null
+++ b/recipes-core/util-linux/util-linux/fstrim.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Discard unused blocks
+ConditionVirtualization=!container
+
+[Service]
+Type=oneshot
+ExecStart=@SBINDIR@/fstrim -av