guix-devel
[Top][All Lists]
Advanced

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

Re: 18/36: services: hurd: Add dummy loopback.


From: Ludovic Courtès
Subject: Re: 18/36: services: hurd: Add dummy loopback.
Date: Fri, 01 May 2020 00:07:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

address@hidden skribis:

> +(define (hurd-loopback-shepherd-service _)
> +  "Return the 'loopback' Shepherd service."
> +
> +  (list (shepherd-service
> +         (documentation "Dummy for bootstrapping (gnu services) on the 
> Hurd.")
> +         (provision '(loopback))
> +         (requirement '())
> +         (start #~(const #t))
> +         (stop #~(const #t))
> +         (respawn? #f))))
> +
> +(define hurd-loopback-service-type
> +  (service-type
> +   (name 'loopback)
> +   (extensions (list (service-extension shepherd-root-service-type
> +                                        hurd-loopback-shepherd-service)))
> +   (compose concatenate)
> +   (extend first-of-two)
> +   (default-value '(loopback)) ;canary for hurd-service->shepherd-service
> +   (description "Dummy service to bootstrap (gnu services) on the
> +Hurd.")))

I believe the code currently used in ‘static-networking-service’ to
setup the loopback device on GNU/Linux should also work on GNU/Hurd: it
uses the “traditional” ioctls provided by (guix build syscalls).

So hopefully we don’t need a Hurd-specific variant.

Ludo’.



reply via email to

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