[Bug 195835] New: sysutils/grub2 10_kfreebsd fails to identify kernel and zpool.cache proper location

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 9 22:49:53 UTC 2014


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 at FreeBSD.org
          Reporter: bergerkos at 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.


More information about the freebsd-ports-bugs mailing list