X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=system-maintenance;h=992c1062c72bfc4c2bc90b767fdc46153be49819;hp=83cefbd7c851a89732acaa28882197bfaf26b7ef;hb=452f9b85cdcccc20f031ae39dbd6811071223c4b;hpb=fc578b7e220971b12a92819aa6ffdd3d157ed11a diff --git a/system-maintenance b/system-maintenance index 83cefbd..992c106 100755 --- a/system-maintenance +++ b/system-maintenance @@ -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