Bug 221750 - kernel packages: incorrect post-install script (kldxref) when packaging multiple kernels
Summary: kernel packages: incorrect post-install script (kldxref) when packaging multi...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Kyle Evans
URL:
Keywords: pkgbase
Depends on:
Blocks:
 
Reported: 2017-08-23 21:03 UTC by Sylvain Garrigues
Modified: 2020-09-18 14:07 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain Garrigues 2017-08-23 21:03:16 UTC
Hello, 

I build and package my kernels with:
KERNCONF=KERNEL1 KERNEL2
NO_INSTALLEXTRAKERNELS=no

I do get both packages.

However, for KERNEL2, files get installed in /boot/kernel.KERNEL2 but the post-install script is "/usr/sbin/kldxref ${PKG_ROOTDIR}/boot/kernel"

I think it should be /usr/sbin/kldxref ${PKG_ROOTDIR}/boot/kernel.KERNEL2 in that case.
Comment 1 Sylvain Garrigues 2017-08-23 21:08:15 UTC
Or files get installed in /boot/kernel.
Comment 2 Ed Maste freebsd_committer freebsd_triage 2020-09-18 14:01:17 UTC
Should be fixed by r330929

https://reviews.freebsd.org/rS330929
https://reviews.freebsd.org/D14689
Comment 3 Kyle Evans freebsd_committer freebsd_triage 2020-09-18 14:07:02 UTC
Yup- sorry, I had missed this PR, but this is the problem I was addressing.