From: Martin Pitt Date: Fri, 2 Aug 2019 13:44:50 +0000 (+0200) Subject: system-maintenance: Put OSTree repo on a tmpfs X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=fc578b7e220971b12a92819aa6ffdd3d157ed11a;p=bin.git system-maintenance: Put OSTree repo on a tmpfs We don't need to keep this around after upgrading, and it's small enough (~ 1.6 GB). --- diff --git a/system-maintenance b/system-maintenance index 96af4b3..83cefbd 100755 --- a/system-maintenance +++ b/system-maintenance @@ -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