Steps to upgrade from 7.0-RELEASE to 7.1-RELEASE
Tim Judd
tajudd at gmail.com
Wed Jan 28 04:07:57 PST 2009
Zbigniew Szalbot wrote:
> Hello,
>
> I would like to confirm the steps required to upgrade a 7.0 system
> with a custom kernel to 7.1 so many thanks for all suggestions!
>
> 1/ Back up /etc (of course backups are regularly done, but based on
> what I saw on the list I think such a backup just prior to upgrade may
> be quite beneficial)
> # cp -pR /etc/ /etc-7.0
>
> 2/ Go for the upgrade and merge files (if any)
> # freebsd-update -r 7.1-RELEASE upgrade
>
> 3/ Install the updates
> # freebsd-update install
>
> 4/ Reboot with a GENERIC kernel (I do have it)
> # nextboot -k GENERIC
Make sure freebsd-update downloads the GENERIC kernel. it typically
leaves it completely alone when asked to update/upgrade a system with a
custom kernel.
Nothing really beats the CVS way. And when I tried a 7.0 to a 7.1, it
wanted like >30,000 updates and was taking forever.
So because of this, you might want to:
download CVS source
make buildkernel; freebsd-update -r 7.1-RELEASE upgrade; freebsd-update
install; make installkernel;
> 5/ Reboot with a custom kernel
> # shutdown -r now
>
> 6/ Finish the update process
> # freebsd-update install
>
> 7/ Recompile the custom kernel
> # cd /usr/src
> # make buildkernel KERNCONF=MYKERNEL
> # make installkernel KERNCONF=MYKERNEL
And remake your custom kernel here. Personally, I try to keep an
updated GENERIC in /boot/kernel.GENERIC always.
> 8/ Final reboot
> # shutdown -r now
>
> I was told earlier that 7.0 -> 7.1 journey is a minor one and so I do
> not need to rebuild all the ports. Is that correct?
>
> Once again, many thanks for your advice!
>
My 2 cents.
--Tim
More information about the freebsd-questions
mailing list