From c346f195fb3b6f3b49611dceeec4d762e06bcdc9 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 21 Sep 2025 21:22:37 +0200 Subject: [PATCH] vm-image.tmpl: Use /dev/vda2 as root file system device. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /dev/vda1 partition points to an EFI partition. The /run/current-system/configuration.scm will then point to an incorrect partition - to the EFI partition instead of root partition. Fix that by pointing it to the default root-label "Guix_image". This allows users to reconfigure out of the /run/current-system/configuration.scm. * gnu/system/examples/vm-image.tmpl: Switch root filesystem device to /dev/vda2. Change-Id: I983892fb3c860dc5bbb2a1654d28db83e88d8c1a Signed-off-by: Ludovic Courtès --- gnu/system/examples/vm-image.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/system/examples/vm-image.tmpl b/gnu/system/examples/vm-image.tmpl index d3e70642b9e68893d63258b3852a8824e92de69e..d0e42ff52d03ca03a79903d447166c285a287a02 100644 --- a/gnu/system/examples/vm-image.tmpl +++ b/gnu/system/examples/vm-image.tmpl @@ -60,7 +60,7 @@ accounts.\x1b[0m (terminal-outputs '(console)))) (file-systems (cons (file-system (mount-point "/") - (device "/dev/vda1") + (device (file-system-label root-label)) (type "ext4")) %base-file-systems))