unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Brice Waegeneire <brice@waegenei.re>
Cc: 46560@debbugs.gnu.org
Subject: [bug#46560] [PATCH 0/2] Activate system when switching generations.
Date: Mon, 01 Mar 2021 16:55:29 +0100	[thread overview]
Message-ID: <87mtvmrhqm.fsf_-_@gnu.org> (raw)
In-Reply-To: <20210216132235.15811-1-brice@waegenei.re> (Brice Waegeneire's message of "Tue, 16 Feb 2021 14:22:34 +0100")

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!




  reply	other threads:[~2021-03-01 15:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 12:35 [bug#46560] [PATCH 0/2] Activate system when switching generations Brice Waegeneire
2021-02-16 13:22 ` [bug#46560] [PATCH 1/2] gnu: services: Add activate script to the profile system directory Brice Waegeneire
2021-03-01 15:55   ` Ludovic Courtès [this message]
2021-02-16 13:22 ` [bug#46560] [PATCH 2/2] scripts: system: Activate system when switching generations Brice Waegeneire
2021-03-01 15:56   ` [bug#46560] [PATCH 0/2] " Ludovic Courtès
2021-03-04  6:57 ` [bug#46560] [PATCH v2 " Brice Waegeneire
2021-03-04  6:57   ` [bug#46560] [PATCH v2 1/2] gnu: services: Add activate script to the profile system directory Brice Waegeneire
2021-03-04  6:57   ` [bug#46560] [PATCH v2 2/2] scripts: system: Activate system when switching generations Brice Waegeneire
2021-03-08 14:15   ` [bug#46560] [PATCH v2 0/2] " Ludovic Courtès
2021-03-09  6:12     ` bug#46560: [PATCH " Brice Waegeneire

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtvmrhqm.fsf_-_@gnu.org \
    --to=ludo@gnu.org \
    --cc=46560@debbugs.gnu.org \
    --cc=brice@waegenei.re \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).