From 08db14c74f5d0608f70f87c0cdbcb80fd0a499f5 Mon Sep 17 00:00:00 2001 From: Sören Tempel Date: Mon, 27 Oct 2025 04:11:20 +0100 Subject: file-systems: Support the 'remount' mount flag. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows remounting file systems which are already mounted by the initrd with custom mount options (e.g. /proc with hidepid=2). * gnu/build/file-systems.scm (mount-flags->bit-mask): Map 'remount to MS_REMOUNT. * gnu/system/file-systems.scm (invalid-file-system-flags): Add 'remount to the list of KNOWN-FLAGS. * doc/guix.texi (File Systems): Document it. Fixes: guix/guix#3849 Change-Id: I0ab116a5b4f7bd201e955ecf022e260c63828dc4 Signed-off-by: Ludovic Courtès --- gnu/system/file-systems.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/system') diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm index f4086dd62b7..f83b67c4770 100644 --- a/gnu/system/file-systems.scm +++ b/gnu/system/file-systems.scm @@ -123,7 +123,7 @@ ;; Note: Keep in sync with 'mount-flags->bit-mask'. (let ((known-flags '(read-only bind-mount no-suid no-dev no-exec - no-atime no-diratime strict-atime lazy-time + no-atime no-diratime strict-atime lazy-time remount shared))) (lambda (flags) "Return the subset of FLAGS that is invalid." -- cgit v1.3