gnu: ci: Truncate git commit in ISO label.

* gnu/ci.scm (image-jobs): Keep only 7 characters from git commit in ISO
label.
This commit is contained in:
Julien Lepiller 2020-09-03 13:35:47 +02:00
parent e9c7bf42e7
commit 7596ae1034
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -237,7 +237,10 @@ (define MiB
(image
(inherit (image-with-label
iso9660-image
(string-append "GUIX_" system "_" %guix-version)))
(string-append "GUIX_" system "_"
(if (> (string-length %guix-version) 7)
(substring %guix-version 0 7)
%guix-version))))
(operating-system installation-os))))
;; Only cross-compile Guix System images from x86_64-linux for now.
,@(if (string=? system "x86_64-linux")