all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#70670] [PATCH 0/2] Fix tftp-unique-root option for service dnsmasq
@ 2024-04-30 12:57 Jean-Baptiste Note
  2024-04-30 13:04 ` [bug#70670] [PATCH 1/2] services: dnsmasq: Fix tftp-unique-root option Jean-Baptiste Note
  2024-04-30 13:04 ` [bug#70670] [PATCH 2/2] doc: Augment dnsmasq-service-type documentation Jean-Baptiste Note
  0 siblings, 2 replies; 3+ messages in thread
From: Jean-Baptiste Note @ 2024-04-30 12:57 UTC (permalink / raw)
  To: 70670; +Cc: Jean-Baptiste Note

The tftp-unique-root option, though well-documented, currently does not work
for me when passing it a string. Fix the option and try to improve the
documentation related to it.

Jean-Baptiste Note (2):
  services: dnsmasq: Fix tftp-unique-root option.
  doc: Augment dnsmasq-service-type documentation.

 doc/guix.texi        | 7 ++++++-
 gnu/services/dns.scm | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

-- 
2.41.0





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#70670] [PATCH 1/2] services: dnsmasq: Fix tftp-unique-root option.
  2024-04-30 12:57 [bug#70670] [PATCH 0/2] Fix tftp-unique-root option for service dnsmasq Jean-Baptiste Note
@ 2024-04-30 13:04 ` Jean-Baptiste Note
  2024-04-30 13:04 ` [bug#70670] [PATCH 2/2] doc: Augment dnsmasq-service-type documentation Jean-Baptiste Note
  1 sibling, 0 replies; 3+ messages in thread
From: Jean-Baptiste Note @ 2024-04-30 13:04 UTC (permalink / raw)
  To: 70670; +Cc: Jean-Baptiste Note

* gnu/services/dns.scm (dnsmasq-shepherd-service): tftp-unique-root is a
string and its length is taken with string-length.
---
 gnu/services/dns.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/dns.scm b/gnu/services/dns.scm
index 6608046909..ff169f4e8d 100644
--- a/gnu/services/dns.scm
+++ b/gnu/services/dns.scm
@@ -874,7 +874,7 @@ (define (dnsmasq-shepherd-service config)
                        '())
                 #$@(if tftp-unique-root
                        (list
-                        (if (> (length tftp-unique-root) 0)
+                        (if (> (string-length tftp-unique-root) 0)
                             (format #f "--tftp-unique-root=~a" tftp-unique-root)
                             (format #f "--tftp-unique-root")))
                        '()))
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#70670] [PATCH 2/2] doc: Augment dnsmasq-service-type documentation.
  2024-04-30 12:57 [bug#70670] [PATCH 0/2] Fix tftp-unique-root option for service dnsmasq Jean-Baptiste Note
  2024-04-30 13:04 ` [bug#70670] [PATCH 1/2] services: dnsmasq: Fix tftp-unique-root option Jean-Baptiste Note
@ 2024-04-30 13:04 ` Jean-Baptiste Note
  1 sibling, 0 replies; 3+ messages in thread
From: Jean-Baptiste Note @ 2024-04-30 13:04 UTC (permalink / raw)
  To: 70670; +Cc: Jean-Baptiste Note

doc/guix.texi: Fix typo in --tftp-root logic description. Add paragraph about
the precise behaviour of the tftp-unique-root parameter.
---
 doc/guix.texi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 3f5d4e7f0d..3a9afcd814 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -33463,12 +33463,17 @@ format).
 For instance, if @option{--tftp-root} is @samp{/tftp} and client
 @samp{1.2.3.4} requests file @file{myfile} then the effective path will
 be @file{/tftp/1.2.3.4/myfile} if @file{/tftp/1.2.3.4} exists or
-@file{/tftp/myfile} otherwise.  When @samp{=mac} is specified it will
+@file{/tftp/myfile} otherwise.  When @samp{mac} is specified it will
 append the MAC address instead, using lowercase zero padded digits
 separated by dashes, e.g.: @samp{01-02-03-04-aa-bb}.  Note that
 resolving MAC addresses is only possible if the client is in the local
 network or obtained a DHCP lease from dnsmasq.
 
+The empty string yields a naked @option{--tftp-unique-root} argument to
+@command{dnsmasq}; any other string @samp{str} will yield
+@option{--tftp-unique-root=str}. Currently admissible values for
+@command{dnsmasq} are @samp{mac} and @samp{ip}.
+
 @end table
 @end deftp
 
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-30 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-30 12:57 [bug#70670] [PATCH 0/2] Fix tftp-unique-root option for service dnsmasq Jean-Baptiste Note
2024-04-30 13:04 ` [bug#70670] [PATCH 1/2] services: dnsmasq: Fix tftp-unique-root option Jean-Baptiste Note
2024-04-30 13:04 ` [bug#70670] [PATCH 2/2] doc: Augment dnsmasq-service-type documentation Jean-Baptiste Note

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.