diff options
| author | Rutherther <rutherther@ditigal.xyz> | 2026-01-21 14:19:46 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-21 14:19:46 +0100 |
| commit | 88f0151d9f85a56cc0b32a192079f82fc01df470 (patch) | |
| tree | 9624dc6e655360d4f1eb8f22eca60e0c26a98f86 /gnu | |
| parent | 59c9c36db96c42d9e07eea09dff6b925ba92cc62 (diff) | |
installer: kernel: Accept empty list as kernel.
On architectures other than x86_64, the kernel page is not shown. That means
the kernel will be an empty list. This leads to an exception during
installation.
Followup of 139a69b60201769ded53667872ca8dbad8f6e216, part of #5515.
* gnu/installer/kernel.scm (kernel->configuration): Accept empty kernel.
Change-Id: I7891f189ecc8d557aa9bb900a6633a570e46a3b6
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/installer/kernel.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/installer/kernel.scm b/gnu/installer/kernel.scm index a07d24d09a6..2700931d402 100644 --- a/gnu/installer/kernel.scm +++ b/gnu/installer/kernel.scm | |||
| @@ -27,7 +27,8 @@ | |||
| 27 | str) | 27 | str) |
| 28 | 28 | ||
| 29 | (define (kernel->configuration kernel dry-run?) | 29 | (define (kernel->configuration kernel dry-run?) |
| 30 | (if (string-prefix? "Hurd" kernel) | 30 | (if (and (string? kernel) |
| 31 | (string-prefix? "Hurd" kernel)) | ||
| 31 | `((kernel %hurd-default-operating-system-kernel) | 32 | `((kernel %hurd-default-operating-system-kernel) |
| 32 | ,(comment (G_ ";; \"noide\" disables the gnumach IDE driver, enabling rumpdisk.\n")) | 33 | ,(comment (G_ ";; \"noide\" disables the gnumach IDE driver, enabling rumpdisk.\n")) |
| 33 | (kernel-arguments '("noide")) | 34 | (kernel-arguments '("noide")) |
