From 1e379767561ba48c74bdb97345bd8f0fce3c4ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 26 Sep 2025 23:19:56 +0200 Subject: [PATCH] =?UTF-8?q?vm:=20Let=20=E2=80=98%immutable-store=E2=80=99?= =?UTF-8?q?=20through.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes guix/guix#1926. ‘guix system vm’ would so far produce a system without the ‘file-system-/gnu/store’ Shepherd service, which is normally provided by ‘%immutable-store’. This would lead to an error for OS configs that explicitly require ‘file-system-/gnu/store’, such as those that use ‘qemu-binfmt-service-type’. * gnu/system/vm.scm (virtualized-operating-system)[user-file-systems]: Remove filtering of TARGET = (%store-prefix). Reported-by: Ashvith Shetty Change-Id: I656df6c3f067e47cd7acd03af437fe757db286d5 --- gnu/system/vm.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 4a0d68d2cd0..5791ca4ffaa 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -153,8 +153,7 @@ environment with the store shared with the host. MAPPINGS is a list of (remove (lambda (fs) (let ((target (file-system-mount-point fs)) (source (file-system-device fs))) - (or (string=? target (%store-prefix)) - (string=? target "/") + (or (string=? target "/") (and (string? source) (string-prefix? "/dev/" source))