mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
linux-initrd: 'expression->initrd' returns the complete file name.
Previously 'expression->initrd' would return the directory that contains the 'initrd' file; now it returns the complete file name for that file. * gnu/system/linux-initrd.scm (expression->initrd)[builder]: Change output file name to "initrd.cpio.gz". Tail-call 'file-append' to return the complete file name. * gnu/system.scm (operating-system-initrd-file): Remove 'file-append' call. * gnu/build/linux-initrd.scm (write-cpio-archive): Check whether OUTPUT already has the ".gz" suffix; rename if before invoking GZIP if it does, and otherwise after. * gnu/system/vm.scm (expression->derivation-in-linux-vm)[builder]: Do not append "/initrd" to #$initrd.
This commit is contained in:
parent
a29ce1f97d
commit
d422cbb3d6
4 changed files with 28 additions and 16 deletions
|
@ -91,16 +91,17 @@ the derivations referenced by EXP are automatically copied to the initrd."
|
|||
(lambda (port)
|
||||
(simple-format port "~A\n" #$guile)))
|
||||
|
||||
(build-initrd (string-append #$output "/initrd")
|
||||
(build-initrd (string-append #$output "/initrd.cpio.gz")
|
||||
#:guile #$guile
|
||||
#:init #$init
|
||||
;; Copy everything INIT refers to into the initrd.
|
||||
#:references-graphs '("closure")
|
||||
#:gzip (string-append #$gzip "/bin/gzip")))))
|
||||
|
||||
(computed-file name builder
|
||||
#:options
|
||||
`(#:references-graphs (("closure" ,init)))))
|
||||
(file-append (computed-file name builder
|
||||
#:options
|
||||
`(#:references-graphs (("closure" ,init))))
|
||||
"/initrd.cpio.gz"))
|
||||
|
||||
(define (flat-linux-module-directory linux modules)
|
||||
"Return a flat directory containing the Linux kernel modules listed in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue