Bug 186273 - freebsd-update(8) never ends asking for update
Summary: freebsd-update(8) never ends asking for update
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 9.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Colin Percival
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 12:50 UTC by Mathieu Arnold
Modified: 2014-08-27 10:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Arnold freebsd_committer freebsd_triage 2014-01-30 12:50:00 UTC
On FreeBSD 9, if an update ever touches the kernel, it gets shipped
with /boot/kernel/linker.hints freebsd-update installs that file, and
then notices something changed in /boot/kernel, run kldxref,
overwrites the file it just installed. The next time it runs, it
thinks that the file has been missed by the update and updates it,
overwrites it, and it can go on forever.

Fix: 

The only fix I have found is to remove the file altogether, it stops
freebsd-update from trying to reinstall it and overwrite it.
How-To-Repeat: # freebsd-update fetch
Looking up freebsd-update.absolight.net mirrors... 1 mirrors found.
Fetching public key from 1.freebsd-update.absolight.net... done.
Fetching metadata signature for 9.1-RELEASE from 1.freebsd-update.absolight.net... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 1 files... done.

The following files will be updated as part of updating to 9.1-RELEASE-p10:
/boot/kernel/linker.hints
# freebsd-update install
Installing updates... done.
# freebsd-update fetch
Looking up freebsd-update.absolight.net mirrors... 1 mirrors found.
Fetching metadata signature for 9.1-RELEASE from 1.freebsd-update.absolight.net... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 9.1-RELEASE-p10:
/boot/kernel/linker.hints
# freebsd-update install
Installing updates... done.
# freebsd-update fetch
Looking up freebsd-update.absolight.net mirrors... 1 mirrors found.
Fetching metadata signature for 9.1-RELEASE from 1.freebsd-update.absolight.net... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 9.1-RELEASE-p10:
/boot/kernel/linker.hints
Comment 1 Mathieu Arnold freebsd_committer freebsd_triage 2014-01-30 12:59:30 UTC
Responsible Changed
From-To: freebsd-bugs->cperciva

To maintainer.
Comment 2 Jilles Tjoelker freebsd_committer freebsd_triage 2014-01-31 22:58:03 UTC
In PR bin/186273, you wrote:
> On FreeBSD 9, if an update ever touches the kernel, it gets shipped
> with /boot/kernel/linker.hints freebsd-update installs that file, and
> then notices something changed in /boot/kernel, run kldxref,
> overwrites the file it just installed. The next time it runs, it
> thinks that the file has been missed by the update and updates it,
> overwrites it, and it can go on forever.

I think this is fixed by SVN r256060. The first release with this fix is
10.0. I MFC'ed it to stable/9, so a future 9.3 should not have this
issue.

The issue was previously reported in PR bin/182098.

A fix for 9.1-RELEASE would need an errata notice. I'm not sure that's
worth the trouble.

-- 
Jilles Tjoelker
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2014-04-14 00:27:34 UTC
Responsible Changed
From-To: cperciva->cperciva

fix synopsis.
Comment 4 Mathieu Arnold freebsd_committer freebsd_triage 2014-08-27 10:46:46 UTC
seems it's going to be solved by the affected FreeBSD versions not being supported any more.