]> piware.de Git - bin.git/commitdiff
system-maintenance: Put OSTree repo on a tmpfs
authorMartin Pitt <martin@piware.de>
Fri, 2 Aug 2019 13:44:50 +0000 (15:44 +0200)
committerMartin Pitt <martin@piware.de>
Fri, 9 Aug 2019 16:54:06 +0000 (18:54 +0200)
We don't need to keep this around after upgrading, and it's small enough
(~ 1.6 GB).

system-maintenance

index 96af4b31f4fab9989365969375d4ad58311e44d1..83cefbd7c851a89732acaa28882197bfaf26b7ef 100755 (executable)
@@ -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