Specifying a non-default kernel name with INSTKERNNAME means that the user will not conflict with a pkgbase kernel, so skip the check.
Details
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Specifying a non-default kernel name with INSTKERNNAME means that the
user will not conflict with a pkgbase kernel, so skip the check.
i'm fairly sure this isn't true: what stops me providing an INSTKERNNAME that matches a pkgbase kernel?
It's not guaranteed to be true in general, but this is just intended prevent foot-shooting in the default/common case, where DESTDIR and INSTKERNNAME are not set and default to / and kernel, respectively.
but this suggests it's safe to use make installkernel if you're using INSTKERNNAME, which isn't true. it may be true, but it also may be safe to use it without INSTKERNNAME set at all - it depends on what you set it to and what pkgbase kernels you have installed.
i would rather add a variable to disable this check (other than DESTDIR), like DISABLE_INSTALLKERNEL_PKG_CHECK, which people could put in /etc/make.conf if they're sure they understand the implications of doing this. alternatively, perhaps we could check if /boot/${INSTKERNNAME} was installed by pkg.