guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/07: file-systems: Mount /var/run/nscd read-write in containers.


From: guix-commits
Subject: 04/07: file-systems: Mount /var/run/nscd read-write in containers.
Date: Mon, 4 Nov 2019 17:35:43 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 625bdf09d344302ec2d5da7f35fe35ca1d128a93
Author: Ludovic Courtès <address@hidden>
Date:   Mon Nov 4 23:00:08 2019 +0100

    file-systems: Mount /var/run/nscd read-write in containers.
    
    Fixes <https://bugs.gnu.org/37967>.
    Reported by Ivan Vilata i Balaguer <address@hidden>.
    
    * gnu/system/file-systems.scm (%network-file-mappings): Set 'writable?'
    to #true for /var/run/nscd.
---
 gnu/system/file-systems.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm
index 6cf6ccc..d47a514 100644
--- a/gnu/system/file-systems.scm
+++ b/gnu/system/file-systems.scm
@@ -507,7 +507,10 @@ a bind mount."
                  ;; XXX: On some GNU/Linux systems, /etc/resolv.conf is a
                  ;; symlink to a file in a tmpfs which, for an unknown reason,
                  ;; cannot be bind mounted read-only within the container.
-                 (writable? (string=? file "/etc/resolv.conf"))))
+                 ;; The same goes with /var/run/nscd, as discussed in
+                 ;; <https://bugs.gnu.org/37967>.
+                 (writable? (or (string=? file "/etc/resolv.conf")
+                                (string=? file "/var/run/nscd")))))
               (cons "/var/run/nscd" %network-configuration-files)))
 
 (define (file-system-type-predicate type)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]