summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--guix/build/linux-initrd.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm
index 16c741f931..83636dfd73 100644
--- a/guix/build/linux-initrd.scm
+++ b/guix/build/linux-initrd.scm
@@ -285,7 +285,7 @@ run a file system check."
 
        ;; Update /etc/mtab.
        (mkdir-p (string-append root "/etc"))
-       (let ((port (open-output-file (string-append root "/etc/mtab"))))
+       (let ((port (open-file (string-append root "/etc/mtab") "a")))
          (format port "~a ~a ~a ~a 0 0~%"
                  source mount-point type options)
          (close-port port))))))