about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-11-14 13:38:02 +0300
committerMunyoki Kilyungi2025-11-14 13:46:04 +0300
commitd1e6618829652904254ce313eeab1cf07029e987 (patch)
tree9c99bc05904a6cc700bd9bedd1ff99b7b6b0482d
parent36f9718004b7082852477feda94807607c947422 (diff)
downloadgn-machines-d1e6618829652904254ce313eeab1cf07029e987.tar.gz
Manually create laminar profile directory if it doesn't exist. HEAD main
-rw-r--r--genenetwork-development.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index 12a22d1..035b18a 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -1002,6 +1002,19 @@ described by CONFIG, a <genenetwork-configuration> object."
       #~(begin
           (use-modules (guix build utils)
 		       (ice-9 ftw))
+	  ;; KLUDGE: Guix now stores inferior profiles under
+	  ;; /var/guix/profiles/per-user (commit
+	  ;; d12c4452a49b355369636de1dfc766b5bad6437b).  The 'laminar'
+	  ;; user’s directory is not created automatically in our
+	  ;; pinned Guix revision, which causes CI jobs using
+	  ;; inferiors to fail with permission errors.
+	  ;; XXXX: FIXME: Explicitly create the directory for
+	  ;; now. Remove this once we update the pinned Guix commit.
+	  (unless (file-exists? "/var/guix/profiles/per-user/laminar")
+	    (mkdir-p "/var/guix/profiles/per-user/laminar")
+	    (chown "/var/guix/profiles/per-user/laminar"
+		   (passwd:uid (getpw "laminar"))
+		   (passwd:gid (getpw "laminar"))))
 
           ;; Set ownership of files.
           (for-each (lambda (file)