bootloader: Fix u-boot installation.
authorMathieu Othacehe <othacehe@gnu.org>
Mon, 5 Oct 2020 08:58:55 +0000 (10:58 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Mon, 5 Oct 2020 09:10:35 +0000 (11:10 +0200)
commitb97b423e3f61c80d5877dadc95b3f316cd61788f
treeb0ba2a1458875c8e33e1430a0e04dad14ca833d8
parent525a351efaea52dbd4f93321a490397ebeb2130f
bootloader: Fix u-boot installation.

This is a follow-up of f19cf27c2b9ff92e2c0fd931ef7fde39c376adaa. The
bootloader installation must be done on the final disk-image, hence using
"disk-image-installer" instead of "installer" callback.

* gnu/bootloader/u-boot.scm: Turn all installer callbacks into
disk-image-installer callbacks.
* gnu/build/bootloader.scm (write-file-on-device): Open the output file with
'no-truncate and 'no-create options.
* gnu/system/image.scm (with-imported-modules*): Add (gnu build bootloader)
module.
gnu/bootloader/u-boot.scm
gnu/build/bootloader.scm
gnu/system/image.scm