guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#29409] [PATCH] build: utils: Introduce dd.


From: Mathieu Othacehe
Subject: [bug#29409] [PATCH] build: utils: Introduce dd.
Date: Fri, 01 Dec 2017 14:03:18 +0100
User-agent: mu4e 0.9.18; emacs 25.2.1

>   (call-with-input-file (string-append syslinux-dir "/" #$mbr)
>     (lambda (input)
>       (let ((bv (get-bytevector-n input 440))
>             (output (open-file device "wb0")))
>         (put-bytevector output bv)
>         (close-port output))))
>
> Granted, that’s a bit more verbose, but it’s also very lightweight
> compared to using ‘dd’.

It's much more elegant anyway ! I'll adapt the patch.

Thanks,

Mathieu






reply via email to

[Prev in Thread] Current Thread [Next in Thread]