]> piware.de Git - bin.git/blobdiff - system-maintenance
vm: Add virtual RNG
[bin.git] / system-maintenance
index 83cefbd7c851a89732acaa28882197bfaf26b7ef..992c1062c72bfc4c2bc90b767fdc46153be49819 100755 (executable)
@@ -6,9 +6,12 @@ rpm-ostree cleanup --repomd
 rpm-ostree cleanup --base
 
 # keep repo on tmpfs
-mkdir -p /srv/ostree/repo/
-mount -t tmpfs tmpfs /srv/ostree/repo
+REPO=/var/tmp/repo/
+mkdir -p $REPO
+mount -t tmpfs tmpfs $REPO
 
 (cd ~martin/src/workstation-ostree-config/; ./compose.sh)
 rpm-ostree upgrade
-umount /srv/ostree/repo
+umount $REPO
+
+fstrim -av