DragonflyBSD 3.4 -> 3.6 アップグレードログ

作業は下記 URL を参考に実施した.(先に結論を書くとここの情報は不正確なので取得してきたソースの UPDATING ファイルを見よう)

DragonFlyBSD: Upgrading

http://www.dragonflybsd.org/docs/newhandbook/Upgrading/

実施内容

ソースの取得

# cd /usr
# time make src-create
...
26.695u 23.199s 14:16.58 5.8%   1922+366k 342+8912io 108pf+0w

ソースのチェックアウト

# cd /usr/src
# git checkout DragonFly_RELEASE_3_6

ソースのビルド

# time make buildworld
4245.582u 1858.224s 1:39:01.47 102.7%   4895+706k 146548+5614io 30190pf+0w
# time make buildkernel
-------------------------------------------------------------- 
>>> Kernel build for X86_64_GENERIC completed on Thu Feb  6 13:19:02 JST 2014 
-------------------------------------------------------------- 
795.755u 284.226s 17:25.09 103.3%       4850+700k 54686+96io 6784pf+0w 
# time make installkernel
2.952u 12.376s 0:23.89 64.1%    315+119k 7662+7854io 3758pf+0w
# time make installworld
16.916u 51.629s 1:33.19 73.5%   261+114k 35454+3810io 10722pf+0w

問題

さてここから. 最初の参考 URL ではこのあと make upgrade を行ってから reboot すると完了となっている.

実際に叩いてみると下記のようにエラーが発生して失敗する.

# time make upgrade
...
cd /usr/src/etc/../secure/lib/libssh; make -f Makefile.etc obj
cd /usr/src/etc/../secure/lib/libssh; make -f Makefile.etc install
1: Invalid argument
*** Error code 2

Stop.
make: stopped in /usr/src/secure/lib/libssh
*** Error code 1

Stop.
make: stopped in /usr/src/etc
*** Error code 1

Stop.
make: stopped in /usr/src
0.062u 0.870s 0:01.23 75.6%     344+132k 478+24io 92pf+0w

調べたら下記チケットが出てきた.要するに make upgrade -> reboot じゃなくて reboot -> make upgrade らしい.

Bug #2602: make upgrade errors from DragonFly_RELEASE_3_4 to DragonFly_RELEASE_3_6 - DragonFlyBSD - DragonFlyBSD bugtracker

http://bugs.dragonflybsd.org/issues/2602

具体的にはメーリスの内容が該当するらしい.

Locales, iconv, strings, stdtime updated together: Full build required

http://lists.dragonflybsd.org/pipermail/users/2013-September/090163.html

/usr/src/UPDATING の中身

UPDATING FROM 3.4 TO 3.6
------------------------

This only applies for this specific upgrade due to locale changes; it is
not needed for upgrades after 3.6.  Please update in this order:

make buildworld
make buildkernel
make installworld
make installkernel
*reboot*
make upgrade

See this mailing list post for details:
http://lists.dragonflybsd.org/pipermail/users/2013-September/090163.html

実施内容再開

リブート

# reboot

ここで ssh で入るとすでに 3.6 と書かれているんだけどまあ無視して make upgrade 叩きます.

# make upgrade
# reboot

ssh で入る

Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

DragonFly v3.6.0.23.gbec1e-RELEASE (X86_64_GENERIC) #0: Thu Feb  6 13:10:06 JST 2014

Welcome to DragonFly!

表示されましたね.

以上.