aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-11-20 20:54:46 +0100
committerLudovic Courtès <ludo@gnu.org>2014-11-20 21:14:39 +0100
commit1c27641f46ce6a02552fda59281727a38d7fe105 (patch)
tree98972615b7b7a2fac86f9676a00ce4425fdd1333 /gnu
parent8c3fc834114306a082d84a83519f870d3c002907 (diff)
downloadpatches-1c27641f46ce6a02552fda59281727a38d7fe105.tar
patches-1c27641f46ce6a02552fda59281727a38d7fe105.tar.gz
file-systems: Always write the options field in /etc/mtab.
* gnu/build/file-systems.scm (mount-file-system): When OPTIONS is false, write "rw" to /etc/mtab. This fixes a bug whereby 'remove-from-mtab' in (guix syscalls) would otherwise raise a 'match-error' because of the missing field. This affected file systems mounted from the initrd, such as devtmpfs, which has options == #f.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/build/file-systems.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm
index 4ac7a7f8c6..84f58538fd 100644
--- a/gnu/build/file-systems.scm
+++ b/gnu/build/file-systems.scm
@@ -293,7 +293,7 @@ run a file system check."
(mkdir-p (string-append root "/etc"))
(let ((port (open-file (string-append root "/etc/mtab") "a")))
(format port "~a ~a ~a ~a 0 0~%"
- source mount-point type (or options ""))
+ source mount-point type (or options "rw"))
(close-port port))))))
;;; file-systems.scm ends here