diff options
Diffstat (limited to 'gnu/system')
| -rw-r--r-- | gnu/system/vm.scm | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index d4a15257d3e..4a0d68d2cd0 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm | |||
| @@ -193,10 +193,20 @@ environment with the store shared with the host. MAPPINGS is a list of | |||
| 193 | rest))) | 193 | rest))) |
| 194 | ;; The (QEMU-only) "cirrus" graphics driver is still expected by some | 194 | ;; The (QEMU-only) "cirrus" graphics driver is still expected by some |
| 195 | ;; VPS with old QEMU versions. See <https://bugs.gnu.org/36069>. | 195 | ;; VPS with old QEMU versions. See <https://bugs.gnu.org/36069>. |
| 196 | (initrd-modules (let ((modules (operating-system-initrd-modules os))) | 196 | ;; |
| 197 | (if (member "cirrus" modules) | 197 | ;; XXX In 6.14, the kernel renamed the "cirrus" module to "cirrus-qemu", so |
| 198 | ;; we account for that here. The renaming was done in this commit: | ||
| 199 | ;; https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=5c3c99868aa2e0b68ac69f8050a6b9c994e73397 | ||
| 200 | (initrd-modules (let* ((modules (operating-system-initrd-modules os)) | ||
| 201 | (kernel-version | ||
| 202 | (package-version (operating-system-kernel os))) | ||
| 203 | (cirrus-module | ||
| 204 | (if (string< kernel-version "6.14") | ||
| 205 | "cirrus" | ||
| 206 | "cirrus-qemu"))) | ||
| 207 | (if (member cirrus-module modules) | ||
| 198 | modules | 208 | modules |
| 199 | (cons "cirrus" modules)))) | 209 | (cons cirrus-module modules)))) |
| 200 | 210 | ||
| 201 | ;; Disable swap. | 211 | ;; Disable swap. |
| 202 | (swap-devices '()) | 212 | (swap-devices '()) |
