Page MenuHomeFreeBSD

pkgbase: Fix post-install script for kernel packages
ClosedPublic

Authored by kevans on Mar 14 2018, 4:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 5, 2:51 AM
Unknown Object (File)
Fri, Sep 4, 3:46 PM
Unknown Object (File)
Fri, Sep 4, 9:51 AM
Unknown Object (File)
Fri, Sep 4, 5:55 AM
Unknown Object (File)
Thu, Sep 3, 9:03 AM
Unknown Object (File)
Wed, Sep 2, 11:50 AM
Unknown Object (File)
Wed, Sep 2, 3:17 AM
Unknown Object (File)
Wed, Sep 2, 2:29 AM
Subscribers

Details

Summary

kernel.ucl uses a hardcoded boot/kernel for kldxref, which is the incorrect directory when we're installing extra kernels that aren't the "default" kernel (placed at boot/kernel).

Fix this by instead using a new %KERNELDIR% that we now replace in Makefile.inc1 with "kernel" for the default kernel and "kernel.${_kernel}" for these extra kernels so that, e.g. /boot/kernel.SHIVA, will get properly kldxref'd upon update and avoid outdated linker.hints.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable