Bug 201427 - freebsd-update no longer recognizes /boot/GENERIC
Summary: freebsd-update no longer recognizes /boot/GENERIC
Status: Closed Overcome By Events
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-doc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-08 17:02 UTC by walker_643
Modified: 2019-04-16 10:51 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description walker_643 2015-07-08 17:02:56 UTC
The manpage for freebsd-update states that it will find the generic kernel under /boot/GENERIC which is useful for systems that have a custom kernel in /boot/kernel. It allowed the user to run on the custom build all the while keeping an up-to-date generic kernel around for emergencies. While this used to be true, it is no longer the case.

The following thread from Jan 2013 mentions the same issue:

https://lists.freebsd.org/pipermail/freebsd-questions/2013-January/247774.html
Comment 1 Glen Barber freebsd_committer freebsd_triage 2015-07-08 17:15:05 UTC
While this is in fact no longer the case, I cannot find the reference to '/boot/GENERIC' you are reporting.

Can you show the '$FreeBSD$' line from the manual page?

 % zcat /usr/share/man/man8/freebsd-update.8.gz | grep 'FreeBSD: '
Comment 2 walker_643 2015-07-08 17:29:56 UTC
Hi Glen -

You're absolutely right, of course. I meant to say handbook rather than manpage.

https://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html

From section 24.2.2:

<quote>
Only the GENERIC kernel can be automatically updated by freebsd-update. If a custom kernel is installed, it will have to be rebuilt and reinstalled after freebsd-update finishes installing the updates. However, freebsd-update will detect and update the GENERIC kernel if /boot/GENERIC exists, even if it is not the current running kernel of the system.
</quote>

Sorry for the confusion!
Comment 3 Glen Barber freebsd_committer freebsd_triage 2015-07-08 17:38:41 UTC
Thank you for clarifying.
Reassigned as a doc/ bug.

Thank you for the report.
Comment 4 walker_643 2015-07-08 18:00:19 UTC
Are we saying that it is intentional that freebsd-update ignores /boot/GENERIC and that it will continue to do so in the foreseeable future? I did not see this change explicitly mentioned in the repository log:

https://github.com/freebsd/freebsd/commits/master/usr.sbin/freebsd-update/freebsd-update.sh

Thank you!
Comment 5 Glen Barber freebsd_committer freebsd_triage 2015-07-08 18:04:21 UTC
Correct.

This is somewhat a result of the changes to the installer and how the base system distributions are packaged since 9.0-RELEASE, where /boot/$KERNEL was renamed to /boot/kernel.