installer: Make dump archive creation optional and selective.
authorJosselin Poiret <dev@jpoiret.xyz>
Sat, 15 Jan 2022 13:50:11 +0000 (14:50 +0100)
committerMathieu Othacehe <othacehe@gnu.org>
Wed, 2 Feb 2022 15:46:44 +0000 (16:46 +0100)
commitad55ccf9b18000144a4e0f28a0f9e57132f94edc
tree790d6fda13fb7c0bb88106ce8c944988e5d45afb
parent112ef30b84744872b3a7617d9e54b3df5db95560
installer: Make dump archive creation optional and selective.

* gnu/installer.scm (installer-program): Let the installer customize
the dump archive.
* gnu/installer/dump.scm (prepare-dump, make-dump): Split make-dump in
prepare-dump, which copies the files necessary for the dump, and
make-dump which creates the archive.
* gnu/installer/record.scm (installer): Add report-page field.  Change
documented return value of exit-error.
* gnu/installer/newt.scm (exit-error): Change arguments to be a string
containing the error.  Let the user choose between exiting and
initiating a dump.
(report-page): Add new variable.
* gnu/installer/newt/page.scm (run-dump-page): New variable.
* gnu/installer/newt/dump.scm: Delete it.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
gnu/installer.scm
gnu/installer/dump.scm
gnu/installer/newt.scm
gnu/installer/newt/dump.scm [deleted file]
gnu/installer/newt/page.scm
gnu/installer/record.scm
gnu/local.mk