system: vm: Include the cirrus driver in the initrd.

This is Ludo's suggestion at <https://issues.guix.gnu.org/36069#26>,
with an added guard against duplicates and a tweaked comment.

* gnu/system/vm.scm (virtualized-operating-system): Add "cirrus" to the
list of INITRD-MODULES.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Change-Id: I1a86286586eee0b8c39706544778c7911a86da33
This commit is contained in:
Tobias Geerinckx-Rice 2023-10-29 02:00:00 +02:00
parent c9361460de
commit 2059b9fbe0
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -168,6 +168,12 @@ (define virtual-file-systems
file-systems
#:volatile-root? volatile?
rest)))
;; The (QEMU-only) "cirrus" graphics driver is still expected by some
;; VPS with old QEMU versions. See <https://bugs.gnu.org/36069>.
(initrd-modules (let ((modules (operating-system-initrd-modules os)))
(if (member "cirrus" modules)
modules
(cons "cirrus" modules))))
;; Disable swap.
(swap-devices '())