mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
scripts: GC hint suggests 'guix gc -d 1m'.
* guix/scripts.scm (warn-about-disk-space): Suggest 'guix gc -d'.
This commit is contained in:
parent
96b8c2e6e2
commit
9c074f61ef
1 changed files with 3 additions and 7 deletions
|
@ -201,16 +201,12 @@ (define* (warn-about-disk-space #:optional profile
|
|||
(when (< ratio threshold)
|
||||
(warning (G_ "only ~,1f% of free space available on ~a~%")
|
||||
(* ratio 100) (%store-prefix))
|
||||
(if profile
|
||||
(display-hint (format #f (G_ "Consider deleting old profile
|
||||
(display-hint (format #f (G_ "Consider deleting old profile
|
||||
generations and collecting garbage, along these lines:
|
||||
|
||||
@example
|
||||
guix package -p ~s --delete-generations=1m
|
||||
guix gc
|
||||
guix gc --delete-generations=1m
|
||||
@end example\n")
|
||||
profile))
|
||||
(display-hint (G_ "Consider running @command{guix gc} to free
|
||||
space."))))))
|
||||
profile)))))
|
||||
|
||||
;;; scripts.scm ends here
|
||||
|
|
Loading…
Reference in a new issue