GNU bug report logs -
#46560
[PATCH 0/2] Activate system when switching generations.
Previous Next
Reported by: Brice Waegeneire <brice <at> waegenei.re>
Date: Tue, 16 Feb 2021 13:01:01 UTC
Severity: normal
Tags: patch
Done: Brice Waegeneire <brice <at> waegenei.re>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
Brice Waegeneire <brice <at> 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!
This bug report was last modified 4 years and 74 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.