linux-initrd: 'expression->initrd' returns the complete file name.
authorLudovic Courtès <ludo@gnu.org>
Wed, 21 Nov 2018 15:19:09 +0000 (16:19 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 21 Nov 2018 22:26:59 +0000 (23:26 +0100)
commitd422cbb3d6a1cc7e4553a2335b113475a05d68ad
treefce053b15b69cd3512187208302d2c72c9c77dbc
parenta29ce1f97dc8336e5a063f14d98d673b33b4bff4
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.
gnu/build/linux-initrd.scm
gnu/system.scm
gnu/system/linux-initrd.scm
gnu/system/vm.scm