~ruther/guix-local

13e7caf52c467d2fb0f2d59a908e2aebcd430367 — Ludovic Courtès 1 year, 10 months ago 3a6c592
services: resize-file-system: Remove invalid default value.

The default value of #f for the ‘file-system’ field is invalid and would
trigger a type error when running ‘guix system search’.

* gnu/services/admin.scm (<resize-file-system-configuration>)[file-system]:
Remove default value.
(resize-file-system-service-type)[default-value]: Remove.
* doc/guix.texi (Miscellaneous Services): Adjust accordingly.

Change-Id: If73f8923f49d38827059ba98bd53636a7f3917fe
2 files changed, 4 insertions(+), 6 deletions(-)

M doc/guix.texi
M gnu/services/admin.scm
M doc/guix.texi => doc/guix.texi +1 -1
@@ 42314,7 42314,7 @@ systems.

@table @asis

@item @code{file-system} (default: @code{#f}) (type: file-system)
@item @code{file-system} (type: file-system)
The file-system object to resize (@pxref{File Systems}).  This object
must have the @code{device} and @code{type} fields set.  Other fields
are ignored.

M gnu/services/admin.scm => gnu/services/admin.scm +3 -5
@@ 1,6 1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2016-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016-2024 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2023 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2024 Gabriel Wicki <gabriel@erlikon.ch>


@@ 572,8 572,7 @@ which lets you search for packages that provide a given file.")
(define-record-type* <resize-file-system-configuration>
  resize-file-system-configuration make-resize-file-system-configuration
  resize-file-system-configuration?
  (file-system    resize-file-system-file-system
                  (default #f))
  (file-system    resize-file-system-file-system)
  (cloud-utils    resize-file-system-cloud-utils
                  (default cloud-utils))
  (e2fsprogs      resize-file-system-e2fsprogs


@@ 678,7 677,6 @@ are booted from a system image flashed onto a larger medium.")
   (extensions
    (list
     (service-extension shepherd-root-service-type
                        (compose list resize-file-system-shepherd-service))))
   (default-value (resize-file-system-configuration))))
                        (compose list resize-file-system-shepherd-service))))))

;;; admin.scm ends here