Skip to content
Snippets Groups Projects
Unverified Commit 1cb9effc authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

system: image: Remove "image-root" derivation when building ISO.

The "image-root" derivation output is used as a temporary directory that is
passed to GNU Xorriso later on. By merging the creation of this directory and
the production of an ISO image, we can get rid of the derivation.

* gnu/system/image.scm (system-iso9660-image): Merge "image-root" and
"iso9660-image" derivations so that we spare an extra derivation.
parent 0919d614
No related branches found
No related tags found
No related merge requests found
...@@ -388,33 +388,31 @@ (define root-uuid ...@@ -388,33 +388,31 @@ (define root-uuid
(graph (match inputs (graph (match inputs
(((names . _) ...) (((names . _) ...)
names))) names)))
(root-builder
(with-imported-modules*
(sql-schema #$schema)
;; Allow non-ASCII file names--e.g., 'nss-certs'--to be decoded.
(setenv "GUIX_LOCPATH"
#+(file-append glibc-utf8-locales "/lib/locale"))
(setlocale LC_ALL "en_US.utf8")
(initialize-root-partition #$output
#:references-graphs '#$graph
#:deduplicate? #f
#:system-directory #$os)))
(image-root
(computed-file "image-root" root-builder
#:options `(#:references-graphs ,inputs)))
(builder (builder
(with-imported-modules* (with-imported-modules*
(let* ((inputs '#$(list parted e2fsprogs dosfstools xorriso (let* ((inputs '#$(list parted e2fsprogs dosfstools xorriso
sed grep coreutils findutils gawk))) sed grep coreutils findutils gawk))
(image-root "tmp-root"))
(sql-schema #$schema)
;; Allow non-ASCII file names--e.g., 'nss-certs'--to be decoded.
(setenv "GUIX_LOCPATH"
#+(file-append glibc-utf8-locales "/lib/locale"))
(setlocale LC_ALL "en_US.utf8")
(set-path-environment-variable "PATH" '("bin" "sbin") inputs) (set-path-environment-variable "PATH" '("bin" "sbin") inputs)
(initialize-root-partition image-root
#:references-graphs '#$graph
#:deduplicate? #f
#:system-directory #$os)
(make-iso9660-image #$xorriso (make-iso9660-image #$xorriso
'#$grub-mkrescue-environment '#$grub-mkrescue-environment
#$bootloader #$bootloader
#$bootcfg #$bootcfg
#$os #$os
#$image-root image-root
#$output #$output
#:references-graphs '#$graph #:references-graphs '#$graph
#:register-closures? #$register-closures? #:register-closures? #$register-closures?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment