aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNigko Yerden <nigko.yerden@gmail.com>2025-04-08 17:10:31 +0500
committerLudovic Courtès <ludo@gnu.org>2025-04-08 17:03:28 +0200
commit3cbd28a475ff1ba2979f019e8f41160f22c0e3a4 (patch)
treefba8925a260c6dbe2a25d7e02b67aaa7b27db09d
parent8f7ed820d74317b11b77cefb53d69d27439076c9 (diff)
downloadguix-3cbd28a475ff1ba2979f019e8f41160f22c0e3a4.tar.gz
guix-3cbd28a475ff1ba2979f019e8f41160f22c0e3a4.zip
services: qemu-binfmt: Add requirement.
* gnu/services/virtualization.scm (qemu-binfmt-shepherd-services) [requirement]: Add file-system-/gnu/store. qemu-binfmt service write references to the store to /proc/sys/fs/binfmt_misc/qemu-[architecture] files, therefore /gnu/store needs to be mounted during the lifetime of the service instance. If /gnu/store does not remain mounted, the issues discussed by nigko and Rutherther on IRC are arisen: https://logs.guix.gnu.org/guix/2025-04-05.log https://logs.guix.gnu.org/guix/2025-04-08.log Change-Id: I7e7a42a5ba0e39aa58c997739898f3457dd793a9 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/services/virtualization.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index 45f3876675..0836fe7d45 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2024 Raven Hallsby <karl@hallsby.com>
;;; Copyright © 2025 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2025 Nigko Yerden <nigko.yerden@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -999,7 +1000,8 @@ given QEMU package."
(list (shepherd-service
(provision '(qemu-binfmt))
(documentation "Install binfmt_misc handlers for QEMU.")
- (requirement '(file-system-/proc/sys/fs/binfmt_misc))
+ (requirement '(file-system-/proc/sys/fs/binfmt_misc
+ file-system-/gnu/store))
(start #~(lambda ()
;; Register the handlers for all of PLATFORMS.
(for-each (lambda (str)