mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-25 02:21:49 +02:00
system: Recognize more file system flags.
* guix/build/linux-initrd.scm (MS_NOSUID, MS_NODEV, MS_NOEXEC): New variables. (mount-flags->bit-mask): New procedure. (mount-file-system)[flags->bit-mask]: Remove. Use 'mount-flags->bit-mask' instead. In /etc/mtab, use the empty string when OPTIONS is false. * gnu/services/base.scm (file-system-service): Add #:flags parameter and honor it. * gnu/system.scm (other-file-system-services): Pass FLAGS to 'file-system-service'.
This commit is contained in:
+3
-1
@@ -3039,7 +3039,9 @@ partitions without having to hard-code their actual device name.
|
||||
|
||||
@item @code{flags} (default: @code{'()})
|
||||
This is a list of symbols denoting mount flags. Recognized flags
|
||||
include @code{read-only} and @code{bind-mount}.
|
||||
include @code{read-only}, @code{bind-mount}, @code{no-dev} (disallow
|
||||
access to special files), @code{no-suid} (ignore setuid and setgid
|
||||
bits), and @code{no-exec} (disallow program execution.)
|
||||
|
||||
@item @code{options} (default: @code{#f})
|
||||
This is either @code{#f}, or a string denoting mount options.
|
||||
|
||||
Reference in New Issue
Block a user