Date: Fri, 2 May 2014 03:08:47 +1000 From: andrew clarke <mail@ozzmosis.com> To: Paul Mather <freebsd-lists@gromit.dlib.vt.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Latest 9.2-RELEASE-p5 update keeps wanting to install /boot/kernel/linker.hints Message-ID: <20140501170847.GA29302@ozzmosis.com> In-Reply-To: <51EB2D64-1000-404B-BB63-8BB6F9D72A01@gromit.dlib.vt.edu> References: <51EB2D64-1000-404B-BB63-8BB6F9D72A01@gromit.dlib.vt.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu 2014-05-01 11:28:16 UTC-0400, Paul Mather (freebsd-lists@gromit.dlib.vt.edu) wrote: > I used freebsd-update to apply the latest security updates to bring > several FreeBSD/amd64 systems to 9.2-RELEASE-p5. Unfortunately, the > subsequent "freebsd-update cron" run reported there were still updates > available: > > ===== > [[...]] > > The following files will be updated as part of updating to 9.2-RELEASE-p5: > /boot/kernel/linker.hints > ===== > > However, no matter how many times I run "freebsd-update fetch install" > it still says /boot/kernel/linker.hints needs to be updated. > > Is anyone else experiencing this? > > I even replaced my /boot/kernel with a stock 9.2-RELEASE kernel.txz > distribution and updated that with freebsd-update but still get the > same result. > > I really would rather not have "freebsd-update cron" bug me every day > to update a file that it just wants to keep updating again after I've > updated it. :-) A quick googling shows this is quite an old bug! Short answer: It's annoying but you can safely ignore it. Long answer: linker.hints is actually generated locally when freebsd-update runs "kldxref -R /boot/". The problem is then sometimes the local checksum doesn't match the freebsd-update server's remote checksum of linker.hints, because kldxref in 9.2-REL does not take into account that the order of a directory can be different between machines/filesystems. A patch was submitted to 9-stable & 10-stable in Dec 2013: http://www.freebsd.org/cgi/query-pr.cgi?pr=182098 I think the only way to fix this properly is for the FreeBSD team to backport the kldxref.c patch to 9.2-REL and issue it as 9.2-REL-p6. The machines generating the freebsd-update files need the kldxref patch for local and remote checksums of linker.hints to match; it's not enough to just patch kldxref on your local machine. Regards Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140501170847.GA29302>