]> piware.de Git - bin.git/blobdiff - system-maintenance
system-maintenance: Put OSTree repo on a tmpfs
[bin.git] / system-maintenance
index 96af4b31f4fab9989365969375d4ad58311e44d1..83cefbd7c851a89732acaa28882197bfaf26b7ef 100755 (executable)
@@ -5,8 +5,10 @@ rpm-ostree cleanup --rollback
 rpm-ostree cleanup --repomd
 rpm-ostree cleanup --base
 
-rm -rf /srv/ostree/repo/
+# keep repo on tmpfs
+mkdir -p /srv/ostree/repo/
+mount -t tmpfs tmpfs /srv/ostree/repo
+
 (cd ~martin/src/workstation-ostree-config/; ./compose.sh)
 rpm-ostree upgrade
-
-fstrim -av
+umount /srv/ostree/repo