Rainer Duffner
2016-Aug-21 23:01 UTC
FreeBSD 10.1 can't upgrade to FreeBSD 11-RC1 via freebsd-update
> Am 20.08.2016 um 22:34 schrieb Doug Hardie <doug at mail.sermon-archive.info>: > > >> On 20 August 2016, at 11:50, Rainer Duffner <rainer at ultra-secure.de> wrote: >> >> FreeBSD 10.3 works. >> >> FreeBSD 10.1 complains about a failed integrity check etc (which the EN was supposed to fix, I assume) >> >> >> I did run freebsd-update to update to the latest patch-level and freebsd-version said, I was on p37. > > I encountered the same issue with 9.x. The following patch was sent to me: > > --- Comment #5 from Xin LI <delphij at FreeBSD.org> --- > (In reply to bc979 from comment #4) > > Can you try applying this? (r279901) > > Index: head/usr.sbin/freebsd-update/freebsd-update.sh > ==================================================================> --- head/usr.sbin/freebsd-update/freebsd-update.sh (revision 279900) > +++ head/usr.sbin/freebsd-update/freebsd-update.sh (revision 279901) > @@ -1231,7 +1231,7 @@ fetch_metadata_sanity () { > # Some aliases to save space later: ${P} is a character which can > # appear in a path; ${M} is the four numeric metadata fields; and > # ${H} is a sha256 hash. > - P="[-+./:=%@_[~[:alnum:]]" > + P="[-+./:=,%@_[~[:alnum:]]" > M="[0-9]+\|[0-9]+\|[0-9]+\|[0-9]+" > H="[0-9a-f]{64}" > > -- > > However, it doesn't actually go in 9.x. The line numbers are very close. Use the comment to find the proper line. For me it was less than 10 lines before 1231. I don't keep the source so I just updated /usr/sbin/freebsd-update directly. The patch worked. >It seems to work, yes. I think this should be fixed before 11.0-RELEASE becomes available. Rainer