system: reconfigure: Use the disk-installer if provided.
authorMathieu Othacehe <othacehe@gnu.org>
Wed, 21 Oct 2020 08:42:50 +0000 (10:42 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Tue, 3 Nov 2020 06:59:59 +0000 (07:59 +0100)
commita38d861e571c952f78ca588b50bdcc4adcb0c88c
tree103c5429cc5297eeb8041947ff3c2e6d0e112535
parent25e811583fc1e718668147e50a0bf297b30e8017
system: reconfigure: Use the disk-installer if provided.

Fixes: <https://issues.guix.gnu.org/44101>.

* gnu/build/bootloader.scm (write-file-on-device): Pass 'no-fail flag instead
of 'no-create. Use a latin-1 transcoder.
* guix/scripts/system/reconfigure.scm (install-bootloader-program): Add a
"disk-installer" argument and use it as a fallback.
(install-bootloader): Adapt accordingly.
* gnu/tests/reconfigure.scm (run-install-bootloader-test): Ditto.
gnu/build/bootloader.scm
gnu/tests/reconfigure.scm
guix/scripts/system/reconfigure.scm