Skip to content
Snippets Groups Projects
Commit f01efec0 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

activation: Preserve /etc/groups upon reboots.

This is a followup to e2fcc23a.  The /etc/group file would be cleared
when booting.

* guix/build/activation.scm (activate-users+groups)[touch]: Rewrite so
  it does not wipe out FILE's contents.
parent c1202fb1
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ (define (activate-users+groups users groups)
each item in GROUPS is a tuple with the group name, group password or #f, and
numeric gid or #f."
(define (touch file)
(call-with-output-file file (const #t)))
(close-port (open-file file "a0b")))
(define activate-user
(match-lambda
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment