远程从i386转为amd64
cvsup到最新的RELENG_6
cd /usr/src
rm -rf /usr/obj
make buildworld TARGET_ARCH=amd64
make buildkernel TARGET_ARCH=amd64
make installkernel TARGET_ARCH=amd64 DESTDIR=/
make install32 TARGET_ARCH=amd64
install -c /usr/obj/amd64/usr/src/rescue/rescue/rescue /sbin/mount
install -c /usr/obj/amd64/usr/src/rescue/rescue/rescue /sbin/umount
install -c /usr/obj/amd64/usr/src/rescue/rescue/rescue /bin/sh
install -c /usr/obj/amd64/usr/src/rescue/rescue/rescue /bin/rm
touch /not.ok
修改 /etc/rc 内容如下
if [ -r /not.ok ]; then
/sbin/mount -u /
/sbin/mount -a
/bin/rm -f /not.ok
cd /usr/src
/usr/bin/make installworld TARGET_ARCH=amd64 DESTDIR=/
sleep 10
cd /
/sbin/umount -a
/sbin/reboot
fi
然后reboot
重启后会自动安装world, 非常费时间,等吧,求神吧,祈祷吧.安装好world会再次自动reboot,然后登陆上去mergemaster吧.
以上实验于 6.2-RELEASE i386 转为 STABLE-6 amd64. 6.2-RELEASE的amd64在installworld有问题.