vm-image.tmpl: Use /dev/vda2 as root file system device.

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 <ludo@gnu.org>
This commit is contained in:
Rutherther 2025-09-21 21:22:37 +02:00 committed by Ludovic Courtès
parent 4641d4bb8e
commit c346f195fb
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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))