From 7b58ff326b63da139184217b796353250f110092 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 23 Jul 2019 18:45:29 +0200 Subject: [PATCH] Add system-maintenance Script to run weekly for rebuilding the OSTree and trimming the SSD. --- system-maintenance | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 system-maintenance diff --git a/system-maintenance b/system-maintenance new file mode 100755 index 0000000..96af4b3 --- /dev/null +++ b/system-maintenance @@ -0,0 +1,12 @@ +#!/bin/sh +set -eux + +rpm-ostree cleanup --rollback +rpm-ostree cleanup --repomd +rpm-ostree cleanup --base + +rm -rf /srv/ostree/repo/ +(cd ~martin/src/workstation-ostree-config/; ./compose.sh) +rpm-ostree upgrade + +fstrim -av -- 2.39.5