mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
file-systems: Always do recursive bind mounts.
Fixes <https://issues.guix.gnu.org/59185>. * guix/build/syscalls.scm (MS_REC): New variable. * gnu/build/file-systems.scm (mount-flags->bit-mask): Set MS_REC bit when bind-mounting.
This commit is contained in:
parent
4416e94e51
commit
c585b4bc68
2 changed files with 3 additions and 1 deletions
|
@ -1127,7 +1127,7 @@ (define (mount-flags->bit-mask flags)
|
|||
(('read-only rest ...)
|
||||
(logior MS_RDONLY (loop rest)))
|
||||
(('bind-mount rest ...)
|
||||
(logior MS_BIND (loop rest)))
|
||||
(logior MS_REC (logior MS_BIND (loop rest))))
|
||||
(('no-suid rest ...)
|
||||
(logior MS_NOSUID (loop rest)))
|
||||
(('no-dev rest ...)
|
||||
|
|
|
@ -51,6 +51,7 @@ (define-module (guix build syscalls)
|
|||
MS_RELATIME
|
||||
MS_BIND
|
||||
MS_MOVE
|
||||
MS_REC
|
||||
MS_SHARED
|
||||
MS_LAZYTIME
|
||||
MNT_FORCE
|
||||
|
@ -541,6 +542,7 @@ (define MS_NOATIME 1024)
|
|||
(define MS_NODIRATIME 2048)
|
||||
(define MS_BIND 4096)
|
||||
(define MS_MOVE 8192)
|
||||
(define MS_REC 16384)
|
||||
(define MS_SHARED 1048576)
|
||||
(define MS_RELATIME 2097152)
|
||||
(define MS_STRICTATIME 16777216)
|
||||
|
|
Loading…
Reference in a new issue