From fc578b7e220971b12a92819aa6ffdd3d157ed11a Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 2 Aug 2019 15:44:50 +0200 Subject: [PATCH] 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). --- system-maintenance | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.39.5