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 139a69b602, part of #5515.

* gnu/installer/kernel.scm (kernel->configuration): Accept empty kernel.

Change-Id: I7891f189ecc8d557aa9bb900a6633a570e46a3b6
This commit is contained in:
Rutherther 2026-01-21 14:19:46 +01:00
parent 59c9c36db9
commit 88f0151d9f
No known key found for this signature in database
GPG key ID: 0322798269E471C3

View file

@ -27,7 +27,8 @@
str)
(define (kernel->configuration kernel dry-run?)
(if (string-prefix? "Hurd" kernel)
(if (and (string? kernel)
(string-prefix? "Hurd" kernel))
`((kernel %hurd-default-operating-system-kernel)
,(comment (G_ ";; \"noide\" disables the gnumach IDE driver, enabling rumpdisk.\n"))
(kernel-arguments '("noide"))