guix-commits
[Top][All Lists]
Advanced

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

02/03: linux-container: Improve filtering of unnecessary file systems.


From: guix-commits
Subject: 02/03: linux-container: Improve filtering of unnecessary file systems.
Date: Fri, 10 May 2019 17:29:28 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 76ae10a1f483a23ac2f88264d49011eb06c9da27
Author: Ludovic Courtès <address@hidden>
Date:   Fri May 10 18:11:25 2019 +0200

    linux-container: Improve filtering of unnecessary file systems.
    
    * gnu/system/linux-container.scm 
(containerized-operating-system)[user-file-systems]:
    Add trailing slash for the "/dev/" and "/sys/" prefixes.
---
 gnu/system/linux-container.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/system/linux-container.scm b/gnu/system/linux-container.scm
index 149c3d0..ded5f27 100644
--- a/gnu/system/linux-container.scm
+++ b/gnu/system/linux-container.scm
@@ -65,8 +65,8 @@ containerized OS."
                     (string=? target "/")
                     (and (string? source)
                          (string-prefix? "/dev/" source))
-                    (string-prefix? "/dev" target)
-                    (string-prefix? "/sys" target))))
+                    (string-prefix? "/dev/" target)
+                    (string-prefix? "/sys/" target))))
             (operating-system-file-systems os)))
 
   (define (mapping->fs fs)



reply via email to

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