system-maintenance: Clean up pending deployments as well
[bin.git] / system-maintenance
1 #!/bin/sh
2 set -eux
3
4 rpm-ostree cleanup --rollback || true
5 rpm-ostree cleanup --repomd
6 rpm-ostree cleanup --pending
7 rpm-ostree cleanup --base
8
9 # keep repo on tmpfs
10 REPO=/var/tmp/repo/
11 mkdir -p $REPO
12 mount -t tmpfs tmpfs $REPO
13
14 (cd ~martin/src/workstation-ostree-config/; ./compose.sh)
15 rpm-ostree upgrade
16 umount $REPO
17
18 # fix fonts between Fedora releases
19 rm -rf ~martin/.cache/fontconfig
20
21 fstrim -av