GNU bug report logs -
#63921
Activation snippets in reverse order, prevent boot
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Tue, 6 Jun 2023 08:17:02 UTC
Severity: serious
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Ludo, hi all.
Ludovic Courtès <ludo <at> gnu.org> writes:
> I ended up
> rewriting ‘modify-services’. Good news is we now have tests for this.
In the rewrite, you wrote:
> +(define (apply-clauses clauses services)
> + "Apply CLAUSES, an alist as returned by 'clause-alist', to SERVICES, a list
> +of services. Use each clause at most once; raise an error if a clause was not
> +used."
Using clauses at most once broke the greetd example in the manual:
> (append
> (modify-services %base-services
> ;; greetd-service-type provides "greetd" PAM service
> (delete login-service-type)
> ;; and can be used in place of mingetty-service-type
> (delete mingetty-service-type))
> (list
> (service greetd-service-type
But there are multiple instances of mingetty-service-type in
%base-services. Now an error is raised on reconfigure because there are
two term-tty2 services.
I’m not sure, isn’t it more explicit if we keep your change of deleting
at most once, but change the greetd example?
The following works for me now …
(modify-services %base-services
(delete login-service-type)
(delete mingetty-service-type)
(delete mingetty-service-type)
(delete mingetty-service-type)
(delete mingetty-service-type)
(delete mingetty-service-type)
(delete mingetty-service-type))
Regards,
Florian
This bug report was last modified 1 year and 258 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.