guix system: Don't warn about old distros for "guix system init".

* guix/scripts/system.scm (process-action): Don't call
'warn-about-old-distro' when ACTION is 'init' or 'build'.
This commit is contained in:
Ludovic Courtès 2017-05-21 11:49:07 +02:00
parent 092c58e745
commit 8a29dc07a4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -847,8 +847,10 @@ (define (process-action action args opts)
((shepherd-graph)
(export-shepherd-graph os (current-output-port)))
(else
(warn-about-old-distro #:suggested-command
"guix system reconfigure")
(unless (memq action '(build init))
(warn-about-old-distro #:suggested-command
"guix system reconfigure"))
(perform-action action os
#:dry-run? dry?
#:derivations-only? (assoc-ref opts