unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41538] [PATCH] guix scripts: Mention Guix checkouts + gcroots/auto when warning about disk space.
@ 2020-05-26 13:22 Pierre Neidhardt
  2020-05-28 21:27 ` Ludovic Courtès
  2020-05-29 10:14 ` zimoun
  0 siblings, 2 replies; 10+ messages in thread
From: Pierre Neidhardt @ 2020-05-26 13:22 UTC (permalink / raw)
  To: 41538

* guix/scripts.scm (warn-about-disk-space): Mention Guix checkouts, system profiles and
gcroots/auto.
---
 guix/scripts.scm | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/guix/scripts.scm b/guix/scripts.scm
index 3e19e38957..c90c3b840c 100644
--- a/guix/scripts.scm
+++ b/guix/scripts.scm
@@ -241,11 +241,23 @@ THRESHOLDS is a pair (ABSOLUTE-THRESHOLD . RELATIVE-THRESHOLD)."
                             absolute-threshold-in-bytes))
       (warning (G_ "only ~,1f GiB of free space available on ~a~%")
                (/ available 1. GiB) (%store-prefix))
-      (display-hint (format #f (G_ "Consider deleting old profile
-generations and collecting garbage, along these lines:
+      (if profile
+          (display-hint (format #f (G_ "Consider deleting old profile
+generations, deleting old Guix checkouts and collecting garbage, along these
+lines:
 
 @example
-guix gc --delete-generations=1m
-@end example\n"))))))
+guix package --profile=~s --delete-generations=1m
+guix pull --delete-generations=20d # Guix checkouts
+guix system delete-generations=2..9 # System generations
+guix gc --free-space=5G
+@end example
+
+You might also want to delete old non-default profiles pointed to by
+the symlinks in /var/guix/gcroots/auto (broken symlinks in this
+directory will be automatically removed).")
+                                profile))
+          (display-hint (G_ "Consider running @command{guix gc} to free
+space."))))))
 
 ;;; scripts.scm ends here
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-05-30 15:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26 13:22 [bug#41538] [PATCH] guix scripts: Mention Guix checkouts + gcroots/auto when warning about disk space Pierre Neidhardt
2020-05-28 21:27 ` Ludovic Courtès
2020-05-29  9:29   ` Pierre Neidhardt
2020-05-29 11:56     ` Ludovic Courtès
2020-05-29 16:38       ` Pierre Neidhardt
2020-05-29 18:48         ` Marius Bakke
2020-05-30  9:03           ` Pierre Neidhardt
2020-05-30 14:05             ` Ludovic Courtès
2020-05-30 15:55               ` Pierre Neidhardt
2020-05-29 10:14 ` zimoun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).