aboutsummaryrefslogtreecommitdiff
path: root/gnu/build/linux-initrd.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2019-07-16 18:09:38 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2019-09-25 12:18:25 +0900
commit91e633f0430c8c26e6915f79365a49d8a4327c96 (patch)
tree69e381c796e6b3a7c4a6c235d1c4de89f08ae6fa /gnu/build/linux-initrd.scm
parent4780db2c935110ea3254817ba0c519c229b9461e (diff)
downloadguix-91e633f0430c8c26e6915f79365a49d8a4327c96.tar.gz
guix-91e633f0430c8c26e6915f79365a49d8a4327c96.zip
build: initrd: Fix "write-cpio-archive" return value.
* gnu/build/linux-initrd.scm (write-cpio-archive): Really return OUTPUT on success, even when compression is disabled.
Diffstat (limited to 'gnu/build/linux-initrd.scm')
-rw-r--r--gnu/build/linux-initrd.scm4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/build/linux-initrd.scm b/gnu/build/linux-initrd.scm
index 3aaa06d3a0..ea7de58553 100644
--- a/gnu/build/linux-initrd.scm
+++ b/gnu/build/linux-initrd.scm
@@ -71,8 +71,7 @@ COMPRESS? is true, compress it using GZIP. On success, return OUTPUT."
(cpio:write-cpio-archive files port
#:file->header cpio:file->cpio-header*)))
- (or (not compress?)
-
+ (if compress?
;; Gzip insists on adding a '.gz' suffix and does nothing if the input
;; file already has that suffix. Shuffle files around to placate it.
(let* ((gz-suffix? (string-suffix? ".gz" output))
@@ -88,7 +87,6 @@ COMPRESS? is true, compress it using GZIP. On success, return OUTPUT."
(unless gz-suffix?
(rename-file (string-append output ".gz") output))
output)))
-
output))
(define (cache-compiled-file-name file)
the "guix system init" command in a PTY....Mathieu Othacehe 2022-10-17installer: Factorize url-alive? in internet check....Andrew Tropin 2022-10-17installer: Relax internet check availability criteria....aleksandr barakin 2022-10-17guix: Fix typos....Julien Lepiller 2022-10-13installer: partition: Add a confirmation page before formatting....Mathieu Othacehe 2022-09-24installer: tests: Fix typo....Mathieu Othacehe 2022-09-24installer: Fix configuration edition during testing....Mathieu Othacehe 2022-09-22installer: Exit console-services page with abort-to-prompt....Josselin Poiret 2022-09-22installer: Ensure luks devices are open when mounting partitions....Josselin Poiret 2022-09-22installer: Return partitions with crypt password as step result....Josselin Poiret 2022-09-22installer: Move <secret> to utils and use it for crypt passwords....Josselin Poiret 2022-09-01installer: Fix segfault on double logical partition removal....Josselin Poiret 2022-08-14installer: parted: Don't export WITH-DELAY-DEVICE-IN-USE?....Tobias Geerinckx-Rice 2022-08-08installer: Add comments and vertical space to the generated config....Ludovic Courtès 2022-08-08installer: Render the final configuration with (guix read-print)....Ludovic Courtès 2022-08-05installer: parted: Call set-system before set-flags....Mathieu Othacehe 2022-08-05installer: parted: Log partition flags....Mathieu Othacehe