guix/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
newt installer: Exit console-services page with abort-to-prompt. 2022-09-22 16:28:12 +02:00
connman.scm
dump.scm
final.scm
hostname.scm
keymap.scm
locale.scm
newt.scm
parted.scm installer: Ensure luks devices are open when mounting partitions. 2022-09-22 16:27:19 +02:00
proxy.scm
record.scm
services.scm
steps.scm
substitutes.scm
tests.scm installer: Fix configuration edition during testing. 2022-09-24 12:48:16 +02:00
timezone.scm
user.scm
utils.scm