shepherd: Include /etc/group in service containers.
* gnu/build/shepherd.scm (default-mounts)[passwd]: Rename to... [accounts]: ... this. Add /etc/group.master
parent
d655f39c44
commit
0cb9c9d170
|
@ -60,11 +60,13 @@
|
||||||
(type "tmpfs")
|
(type "tmpfs")
|
||||||
(check? #f)))
|
(check? #f)))
|
||||||
|
|
||||||
(define passwd
|
(define accounts
|
||||||
;; This is for processes in the default user namespace but living in a
|
;; This is for processes in the default user namespace but living in a
|
||||||
;; different mount namespace, so that they can lookup users.
|
;; different mount namespace, so that they can lookup users.
|
||||||
|
(list (file-system-mapping
|
||||||
|
(source "/etc/passwd") (target source))
|
||||||
(file-system-mapping
|
(file-system-mapping
|
||||||
(source "/etc/passwd") (target source)))
|
(source "/etc/group") (target source))))
|
||||||
|
|
||||||
(define nscd-socket
|
(define nscd-socket
|
||||||
(file-system-mapping
|
(file-system-mapping
|
||||||
|
@ -78,7 +80,7 @@
|
||||||
%network-file-mappings))
|
%network-file-mappings))
|
||||||
,@(if (and (memq 'mnt namespaces)
|
,@(if (and (memq 'mnt namespaces)
|
||||||
(not (memq 'user namespaces)))
|
(not (memq 'user namespaces)))
|
||||||
(list passwd)
|
accounts
|
||||||
'())
|
'())
|
||||||
,%store-mapping))) ;XXX: coarse-grain
|
,%store-mapping))) ;XXX: coarse-grain
|
||||||
(map file-system-mapping->bind-mount
|
(map file-system-mapping->bind-mount
|
||||||
|
|
Reference in New Issue