Grub configuration interpretes `linux' as directory where is located bzImage. If I enter file name instead, result configuration will be wrong.
Example of system configuration:
(bootloader (grub-configuration
(device "/dev/sda")
(menu-entries
(list
(menu-entry
(label "Gentoo")
(linux "/vmlinuz-gentoo") ; vmlinuz-gentoo is file
(linux-arguments (list
"root=/dev/venom/gentoo"
"init=/usr/lib/systemd/systemd"))
(initrd "/initramfs-gentoo")
)))))
Result part of grub.cfg:
menuentry "Gentoo" {
# Set 'root' to the partition that contains the kernel.
search --file --set /vmlinuz-gentoo/bzImage
linux /vmlinuz-gentoo/bzImage root=/dev/venom/gentoo
init=/usr/lib/systemd/systemd
initrd /initramfs-gentoo
}
It would be nice if the the string would be simply copied into
grub.cfg, so I could use even `(hd0,msdos1)/vmlinuz'.
pgpRRJ38ofkVI.pgp
Description: PGP signature
