diff mbox series

[bug#65335,3/4] gnu: build: activate-current-system: Ensure directory existence.

Message ID d12675f1e10248277d424c2f366ee309c722dd9e.1692178169.git.ngraves@ngraves.fr
State New
Headers show
Series Allow mounting root on tmpfs for impersistence | expand

Commit Message

Nicolas Graves Aug. 16, 2023, 9:29 a.m. UTC
---
 gnu/build/activation.scm | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/gnu/build/activation.scm b/gnu/build/activation.scm
index eea2233563..759704ae03 100644
--- a/gnu/build/activation.scm
+++ b/gnu/build/activation.scm
@@ -408,6 +408,7 @@  (define* (activate-current-system
 
   (format #t "making '~a' the current system...~%" system)
 
+  (mkdir-p "/run")
   ;; Atomically make SYSTEM current.
   (let ((new (string-append %current-system ".new")))
     (symlink system new)