Skip to content
Snippets Groups Projects
Commit 85c3127f authored by David Thompson's avatar David Thompson
Browse files

build: file-systems: Import (guix build syscalls) for non-static Guiles.

* gnu/build/file-systems.scm: Import (guix build syscalls) when 'mount' is not
  defined.
* gnu/system.scm (operating-system-activation-script): Include (guix build
  syscalls) module in derivation.
parent 9f04196d
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,13 @@ (define-module (gnu build file-systems) ...@@ -50,6 +50,13 @@ (define-module (gnu build file-systems)
;;; ;;;
;;; Code: ;;; Code:
;; 'mount' is already defined in the statically linked Guile used for initial
;; RAM disks, but in all other cases the (guix build syscalls) module contains
;; the mount binding.
(unless (defined? 'mount)
(module-use! (current-module)
(resolve-interface '(guix build syscalls))))
;; Linux mount flags, from libc's <sys/mount.h>. ;; Linux mount flags, from libc's <sys/mount.h>.
(define MS_RDONLY 1) (define MS_RDONLY 1)
(define MS_NOSUID 2) (define MS_NOSUID 2)
......
...@@ -689,6 +689,7 @@ (define %modules ...@@ -689,6 +689,7 @@ (define %modules
(gnu build linux-modules) (gnu build linux-modules)
(gnu build file-systems) (gnu build file-systems)
(guix build utils) (guix build utils)
(guix build syscalls)
(guix elf))) (guix elf)))
(define (service-activations services) (define (service-activations services)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment