Subject: bug#77637: closed (Re: [bug#77637] [PATCH] services: qemu-binfmt: Add requirement.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 08 Apr 2025 15:30:10 +0000

Your bug report

#77637: [PATCH] services: qemu-binfmt: Add requirement.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
77637: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77637
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#77637] [PATCH] services: qemu-binfmt: Add requirement.
From: Ludovic Courtès <[email-masked]>
To: Nigko Yerden <[email-masked]>
Cc: [email-masked]
Date: Tue, 08 Apr 2025 17:03:39 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Nigko Yerden <[email-masked]> skribis:

> * 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

Applied, thanks!

Subject: [PATCH] services: qemu-binfmt: Add requirement.
From: Nigko Yerden <[email-masked]>
To: [email-masked]
Cc: Nigko Yerden <[email-masked]>
Date: Tue, 8 Apr 2025 17:10:31 +0500
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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
---
 gnu/services/virtualization.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 <[email-masked]>
 ;;; Copyright © 2024 Raven Hallsby <[email-masked]>
 ;;; Copyright © 2025 Maxim Cournoyer <[email-masked]>
+;;; Copyright © 2025 Nigko Yerden <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -999,7 +1000,8 @@ (define qemu-binfmt-shepherd-services
      (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)

base-commit: c9524b5841a057b5e64abf0dca75261e741949c5
-- 
2.49.0