system: grub: Allow arbitrary kernel file names in 'menu-entry'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 9 Sep 2016 21:27:00 +0000 (23:27 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 9 Sep 2016 21:54:43 +0000 (23:54 +0200)
commit44d5f54e31039d78f156bd9562dca293124eaa76
tree2650e88b54721a2e50d3bd27019fac41bbdd8c78
parenta9e5e92f940381e3a4ee828c6d8ff22a73067e17
system: grub: Allow arbitrary kernel file names in 'menu-entry'.

Fixes <http://bugs.gnu.org/20067>.
Reported by Tomáš Čech <sleep_walker@suse.cz>.

* gnu/system.scm (system-linux-image-file-name)
(operating-system-kernel-file): New procedures.
(operating-system-grub.cfg): Use 'operating-system-kernel-file' for the
'kernel' field of 'menu-entry'.
(operating-system-parameters-file): Likewise for the 'kernel' entry.
(read-boot-parameters): Adjust 'kernel' field so that it contains the
absolute file name of the image.
* gnu/system/grub.scm (grub-configuration-file)[linux-image-name]:
Remove.
[entry->gexp]: Assume LINUX is the absolute file name of the kernel
image.
* doc/guix.texi (GRUB Configuration): Add an example, and adjust
'kernel' field documentation accordingly.
doc/guix.texi
gnu/system.scm
gnu/system/grub.scm