X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=system-maintenance;h=7ec31bf04961b8a04ec0b3be6795e61103b0be8f;hp=96af4b31f4fab9989365969375d4ad58311e44d1;hb=d802c8aecc3efb8dbd1a9158a0cc77e61013c6c9;hpb=7b58ff326b63da139184217b796353250f110092 diff --git a/system-maintenance b/system-maintenance index 96af4b3..7ec31bf 100755 --- a/system-maintenance +++ b/system-maintenance @@ -1,12 +1,20 @@ #!/bin/sh set -eux -rpm-ostree cleanup --rollback +rpm-ostree cleanup --rollback || true rpm-ostree cleanup --repomd rpm-ostree cleanup --base -rm -rf /srv/ostree/repo/ +# keep repo on tmpfs +REPO=/var/tmp/repo/ +mkdir -p $REPO +mount -t tmpfs tmpfs $REPO + (cd ~martin/src/workstation-ostree-config/; ./compose.sh) rpm-ostree upgrade +umount $REPO + +# fix fonts between Fedora releases +rm -rf ~martin/.cache/fontconfig fstrim -av