Bug 213935 - freebsd-update upgrade from 9.3 to 11.0 failed.
Summary: freebsd-update upgrade from 9.3 to 11.0 failed.
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 9.3-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 04:42 UTC by hsakamt
Modified: 2016-12-20 21:50 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 hsakamt 2016-10-31 04:42:35 UTC
When I try to upgrade 9.3-RELEASE-p49 to 11.0-RELEASE, 
It failed with:
# freebsd-update upgrade -r 11.0-RELEASE
  :
The update metadata is correctly signed, but
failed an integrity check.
Cowardly refusing to proceed any further.
# freebsd-update fetch
  :
No updates needed to update system to 9.3-RELEASE-p49.


Because some files in 11.0 include ',' character in a path.
This patch fix the problem(still in progress but looks ok).

--- /usr/sbin/freebsd-update.orig	2016-10-31 13:10:47.000000000 +0900
+++ /usr/sbin/freebsd-update	2016-10-31 13:10:50.000000000 +0900
@@ -1223,7 +1223,7 @@
 	# 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}"
Comment 1 Anton Saietskii 2016-11-14 13:51:55 UTC
I think you should not skip intermediate versions. Try this:
1. Update to latest 9.x
2. Update to latest 10.x
3. Update to 11
Comment 2 hsakamt 2016-11-14 23:52:34 UTC
(In reply to Anton Sayetsky from comment #1)

But the Official Handbook says:

The freebsd-update(8) utility supports binary upgrades of i386 and amd64 systems running earlier FreeBSD releases. Systems running 9.3-RELEASE, 10.1-RELEASE, 10.2-RELEASE, 10.3-RELEASE, 11.0-RC[123] can upgrade as follows:

# freebsd-update fetch
# freebsd-update install

(https://www.freebsd.org/releases/11.0R/installation.html)

So, I think that it also supports upgrading from 9.3-RELEASE.
Comment 3 hsakamt 2016-11-15 00:17:33 UTC
By using this patch binary update from 9.3 to 11.0 succeeded.
The problem file seems to be under /usr/src/sys/gnu/dts/include/dt-bindings/ (see below).
So probably it is a problem that comes out only when installing the src/sys component.


Files:
/usr/src/sys/gnu/dts/include/dt-bindings/clock/alphascale,asm9260.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/lsi,axm5516-clks.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/marvell,mmp2.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/marvell,pxa168.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/marvell,pxa1928.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/marvell,pxa910.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/maxim,max77686.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/maxim,max77802.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,gcc-apq8084.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,gcc-ipq806x.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,gcc-msm8660.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,gcc-msm8916.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,gcc-msm8960.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,gcc-msm8974.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,gcc-msm8996.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,lcc-ipq806x.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,lcc-msm8960.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,mmcc-apq8084.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,mmcc-msm8960.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,mmcc-msm8974.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/qcom,mmcc-msm8996.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/rockchip,rk808.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/samsung,s2mps11.h
/usr/src/sys/gnu/dts/include/dt-bindings/clock/samsung,s3c64xx-clock.h
/usr/src/sys/gnu/dts/include/dt-bindings/iio/qcom,spmi-vadc.h
/usr/src/sys/gnu/dts/include/dt-bindings/pinctrl/qcom,pmic-gpio.h
/usr/src/sys/gnu/dts/include/dt-bindings/pinctrl/qcom,pmic-mpp.h
/usr/src/sys/gnu/dts/include/dt-bindings/regulator/maxim,max77802.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/altr,rst-mgr-a10.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/altr,rst-mgr.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/hisi,hi6220-resets.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/qcom,gcc-apq8084.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/qcom,gcc-ipq806x.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/qcom,gcc-msm8660.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/qcom,gcc-msm8916.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/qcom,gcc-msm8960.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/qcom,gcc-msm8974.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/qcom,mmcc-apq8084.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/qcom,mmcc-msm8960.h
/usr/src/sys/gnu/dts/include/dt-bindings/reset/qcom,mmcc-msm8974.h
/usr/src/sys/gnu/dts/include/dt-bindings/soc/qcom,gsbi.h