[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#46560] [PATCH 0/2] Activate system when switching generations.
From: |
Ludovic Courtès |
Subject: |
[bug#46560] [PATCH 0/2] Activate system when switching generations. |
Date: |
Mon, 01 Mar 2021 16:55:29 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi,
Brice Waegeneire <brice@waegenei.re> skribis:
> * gnu/services.scm (activation-profile-entry): New procedure...
> (activation-service-type): ... use it.
[...]
> +(define (activation-profile-entry gexps)
> + "Return, as a monadic value, an entry for the activation script in the
> +system directory."
> + (mlet %store-monad ((activate (lower-object (activation-script gexps))))
> + (return `(("activate" ,activate)))))
> +
> (define (second-argument a b) b)
>
> (define activation-service-type
> (service-type (name 'activate)
> (extensions
> (list (service-extension boot-service-type
> - gexps->activation-gexp)))
> + gexps->activation-gexp)
> + (service-extension system-service-type
> + activation-profile-entry)))
Good idea, LGTM!
- [bug#46560] [PATCH 0/2] Activate system when switching generations.,
Ludovic Courtès <=