emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45023: closed ([PATCH] install: Discover local substitute servers.)


From: GNU bug Tracking System
Subject: bug#45023: closed ([PATCH] install: Discover local substitute servers.)
Date: Fri, 11 Dec 2020 20:44:02 +0000

Your message dated Fri, 11 Dec 2020 21:43:23 +0100
with message-id <87lfe4oyz8.fsf@gnu.org>
and subject line Re: [bug#45023] [PATCH] install: Discover local substitute 
servers.
has caused the debbugs.gnu.org bug report #45023,
regarding [PATCH] install: Discover local substitute servers.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
45023: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45023
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] install: Discover local substitute servers. Date: Thu, 3 Dec 2020 15:01:55 +0100
* gnu/system/install.scm (%installation-services): Add avahi-service-type and
enable substitute server discover in guix-service-type.
[<name-service-switch>]: Set it to %mdns-host-lookup-nss.
---

Hello,

This allows the installation image to use local substitute servers discovered
using Avahi.

It only increases the image closure by 10MiB.

Thanks,

Mathieu

 gnu/system/install.scm | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 7701297411..7720a42c60 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -34,6 +34,7 @@
   #:use-module ((guix store) #:select (%store-prefix))
   #:use-module (gnu installer)
   #:use-module (gnu system locale)
+  #:use-module (gnu services avahi)
   #:use-module (gnu services dbus)
   #:use-module (gnu services networking)
   #:use-module (gnu services shepherd)
@@ -335,11 +336,18 @@ Access documentation at any time by pressing 
Alt-F2.\x1b[0m
           ;; The usual services.
           (syslog-service)
 
+          ;; Use the Avahi daemon to discover substitute servers on the local
+          ;; network.  It can be faster than fetching from remote servers.
+          (service avahi-service-type
+                   (avahi-configuration (debug? #t)))
+
           ;; The build daemon.  Register the default substitute server key(s)
-          ;; as trusted to allow the installation process to use substitutes by
-          ;; default.
+          ;; as trusted to allow the installation process to use substitutes
+          ;; by default.
           (service guix-service-type
-                   (guix-configuration (authorize-key? #t)))
+                   (guix-configuration
+                    (authorize-key? #t)
+                    (discover? #t))) ;see above.
 
           ;; Start udev so that useful device nodes are available.
           ;; Use device-mapper rules for cryptsetup & co; enable the CRDA for
@@ -435,6 +443,7 @@ Access documentation at any time by pressing Alt-F2.\x1b[0m
     (host-name "gnu")
     (timezone "Europe/Paris")
     (locale "en_US.utf8")
+    (name-service-switch %mdns-host-lookup-nss)
     (bootloader (bootloader-configuration
                  (bootloader grub-bootloader)
                  (target "/dev/sda")))
-- 
2.29.2




--- End Message ---
--- Begin Message --- Subject: Re: [bug#45023] [PATCH] install: Discover local substitute servers. Date: Fri, 11 Dec 2020 21:43:23 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Hey,

> How bigger is the resulting ISO?

It's 10MiB bigger! I took your remarks into account and pushed as
8361817bf693742757b096468198626f297bb09e.

Thanks for reviewing,

Mathieu


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]