> 1. single user mode
cp /usr/bin/tar /stand ; cp /usr/bin/gzip /stand ; cp /sbin/reboot /stand
在每個 install.sh 加入
export PATH=/stand:/bin:/sbin:/usr/bin:/usr/sbin
> 2. backup /etc (eg. cp -Rpf /etc /usr/tmp/etc )
> 3. cd /5.0-2002XXXX-STABLE
> 3. cd base ; sh install.sh
> 4. cd ../catpages ; sh install.sh ; .... (以下自己到各目錄選想裝的東西)
> 5. cd ../src ; sh install sys (要裝全部 source code 就是 all)
6. cd ../boot ; cp -Rpf * /boot
> 6. cp 舊的 /etc 一些檔案回去, 必要時要開二個窗照著改, 手動 merge..
> (joe 此時很好用.. :P) 比較重要的有 rc.conf master.passwd passwd group ....
> 如果是 4.x 之間 upgrade , 可以寫一個小 script 來做這些事..
> 可參考 http://140.113.99.99/upgrade_etc.sh
> 上面要輸入的那一大段 sh install.sh 可以依自己需要加入到這段 script 內.
> 7. reboot
此時 reboot 會因為 binary 已 upgrade, 無法 match 到現有的 OS 版本而coredump..
所以要打 /stand/reboot :p
> 以上過程大概 30分鐘搞定.. 又, 從 4.x -> 4.7-stable 也可以這樣作,
> 比 make world 省很多時間.. 也可以少踩很多地雷..:P
> 而 3.x 直接升級 4.7-stable 要注意一些小地方, hint: tar & gzip 的版本.
> 要把 install.sh 裡的 PATH 改掉, 改用 /stand 裡的版本..
--
※ Origin: 交大資工鳳凰城資訊站 <bbs.csie.nctu.edu.tw>
◆ From: 61-230-204-193.HINET-IP.hinet.net
抓一下 bug, 寫太快了.. -_- 這個流程是 upgrade 4.x->4.7 stable 的
4.x 的 upgrade 用此流程很順暢, 大幅度版本 upgrade 就要用以下 dirty 的方式