Date: Tue, 09 Dec 2014 22:49:52 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 195835] New: sysutils/grub2 10_kfreebsd fails to identify kernel and zpool.cache proper location Message-ID: <bug-195835-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195835 Bug ID: 195835 Summary: sysutils/grub2 10_kfreebsd fails to identify kernel and zpool.cache proper location Product: Ports Tree Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: bergerkos@yahoo.co.uk Created attachment 150413 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150413&action=edit patch to 10_kfreebsd file. On my system, which is amd64, zfs root, the 10_kfreebsd template found under /usr/local/etc/grub.d causes grub-mkconfig script to erroneously define kernel as /boot/kernel instead of /boot/kernel/kernel, while also looking for zfs/zpool.cache under /boot/kernel, while it usually resides under /boot. Logical, too, because /boot/kernel is subject to being moved with a new kernel installation, which mustn't concern zpool.cache file. Another problem I see is needless repetition of the string "search --no-floppy --fs-uuid --set=root $UUID" every now and then in the created grub.cfg, while it is properly belongs only once, at the top of a menu entry, where "root" is defined. This I was able to correct, see the attached patch. It also deals with \t meant for <tab>, which has been reported elsewhere. The result is a clean and correct grub.cfg file, which can be used. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195835-13>