GNU bug report logs -
#27661
[PATCH] build: Make ISO-9660 image bootable from USB flash drive.
Previous Next
Full log
View this message in rfc822 format
Danny Milosavljevic <dannym <at> scratchpost.org> skribis:
> On Tue, 18 Jul 2017 15:08:49 +0200 ludo <at> gnu.org (Ludovic Courtès) wrote:
>>--- a/gnu/build/vm.scm
>>+the result to OUTPUT. Unless SINGLE-FILE-OUTPUT? is true, the result is
>>+copied recursively to OUTPUT.
>
> What happens when SINGLE-FILE-OUTPUT? is true? :)
>
> I'd say something like,
>
> If SINGLE-FILE-OUTPUT? is true, copy a single file from /xchg to OUTPUT.
> Otherwise, copy the contents of /xchg to a new directory OUTPUT.
>
>>+ (if single-file-output?
>>+ (let ((graph? (lambda (name stat)
>>+ (member (basename name) references-graphs))))
>>+ (copy-file (first (find-files "xchg" (negate graph?)))
>
> Maybe raise error when there's more than one possibility?
>
>>+derivation). In the virtual machine, EXP has access to all its inputs from
>>+the store; it should put its output files in the `/xchg' directory, which is
>>+copied to the derivation's output when the VM terminates, recursively, unless
>>+SINGLE-FILE-OUTPUT? is true.
>
> What if it's true?
All good points, indeed. Pushed with these changes as
8d033e3e1607d5722ef7288208551d0331c8a853.
>>+++ b/guix/scripts/system.scm
> [...]
>>+ (system-disk-image os
>>+ #:name (match file-system-type
>>+ ("iso9660" "image.iso")
>>+ (_ "disk-image"))
>
> If we called it "disk-image" in the iso9660 case as well we'd not have this special case. Do we want to?
I find it marginally nicer to have an explicit “.iso” suffix. I pushed
this part as 5058bf56843baf3c0d82fbf0addbb30f00572428.
Thank you!
Ludo’.
This bug report was last modified 8 years and 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.