guix-play/gnu/installer
Mathieu Othacehe fe4663ae24
installer: Fix configuration edition during testing.
When the configuration is edited, it looks like there are some leftover
fragments from the input configuration:

Example content of config.scm after edition:

  #:imported-modules
  '((gnu services herd)
    (guix build utils)
    (guix combinators)))

unted".  The unique
  ;; file system identifiers there ("UUIDs") can be obtained
  ;; by running 'blkid' in a terminal.

...

This is strange because call-with-output-file uses the O_TRUNC flag which
resets the file size to zero. Remove the configuration file before writing it
as a work-around.

* gnu/installer/tests.scm (edit-configuration-file): Remove the configuration
file before re-writing it.
2022-09-24 12:48:16 +02:00
..
aux-files installer: Use 'glibc-supported-locales'. 2019-05-13 23:46:08 +02:00
newt installer: Exit console-services page with abort-to-prompt. 2022-09-22 16:28:12 +02:00
connman.scm installer: Continue even if Connman cannot phone home. 2022-02-26 15:56:55 +01:00
dump.scm installer: Make dump archive creation optional and selective. 2022-02-02 16:46:44 +01:00
final.scm installer: Use system-wide guix for system init. 2022-02-02 16:46:44 +01:00
hostname.scm
keymap.scm installer: keymap: Fix optional fields handling. 2021-09-21 20:35:49 +00:00
locale.scm maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
newt.scm installer: Make dump archive creation optional and selective. 2022-02-02 16:46:44 +01:00
parted.scm installer: Ensure luks devices are open when mounting partitions. 2022-09-22 16:27:19 +02:00
proxy.scm install: Discover local substitute servers. 2020-12-11 21:37:07 +01:00
record.scm installer: Make dump archive creation optional and selective. 2022-02-02 16:46:44 +01:00
services.scm installer: Add comments and vertical space to the generated config. 2022-08-08 11:54:25 +02:00
steps.scm installer: Add comments and vertical space to the generated config. 2022-08-08 11:54:25 +02:00
substitutes.scm install: Discover local substitute servers. 2020-12-11 21:37:07 +01:00
tests.scm installer: Fix configuration edition during testing. 2022-09-24 12:48:16 +02:00
timezone.scm gnu: Fix some typos in the installer. 2019-02-18 01:52:47 +01:00
user.scm installer: Move <secret> to utils and use it for crypt passwords. 2022-09-22 16:00:29 +02:00
utils.scm installer: Move <secret> to utils and use it for crypt passwords. 2022-09-22 16:00:29 +02:00