Upgrading to the new GhostBSD base on 13-STABLE

News and Announcements related to GhostBSD
Post Reply
User avatar
ericbsd
Developer
Posts: 1705
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 61 times
Been thanked: 112 times

Upgrading to the new GhostBSD base on 13-STABLE

Post by ericbsd »

Warning: It is safer to backup and reinstalls GhostBSD with an iso. If you follow these steps properly, everything should be fine, but I would backup all the important data in another drive or a NAS.

ISO's are available at:
http://download.us.ghostbsd.org/develop ... 64/latest/
https://download.ghostbsd.org/development/amd64/latest/
http://download.fr.ghostbsd.org/develop ... 64/latest/
http://download.za.ghostbsd.org/develop ... 64/latest/

Edit:
Our new live system introduced in 2020 has a bug with the installer that copied the livecd zpool.cache. This causes a zfs issue after the upgrade. So removing the livecd cache is the fixed solution for the problem.

Code: Select all

sudo rm /boot/zfs/zpool.cache

This step is not tested might not even work because we are upgrading to OpenZFS 2, but I always recommend creating a backup BE if everything goes wrong.

Code: Select all

bectl create 12-stable

In /etc/pkg/GhostBSD.conf comment this line:

Code: Select all

"http://pkg.us.ghostbsd.org/stable/${ABI}/latest",
and add this:

Code: Select all

url: "http://pkg.us.ghostbsd.org/stable/FreeBSD:13:amd64/latest",
It should look like this:

Code: Select all

# $GhostBSD$
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/GhostBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "GhostBSD: { enabled: no }" > /usr/local/etc/pkg/repos/GhostBSD.conf
#

GhostBSD: {
  # url: "http://pkg.ghostbsd.org/stable/${ABI}/latest",
  url: "http://pkg.us.ghostbsd.org/stable/FreeBSD:13:amd64/latest",
  enabled: yes
}
Everything below I recommend to run in a TTY. Just press Ctrl+Alt+F2 login as root or use sudo su.

You need to bootstrap pkg before the upgrade.

Code: Select all

# env IGNORE_OSVERSION=yes pkg bootstrap -f
Now you can upgrade with this:

Code: Select all

# env ABI=freebsd:13:amd64 pkg-static upgrade -f
After that long upgrade is done, reboot.

If everything looks good, you can upgrade your pools by doing this:

Code: Select all

sudo zpool upgrade -a
Note: There is no going back to 12 after sudo zpool upgrade -a.

Edit:
if you want zpool.cache and not have zdb to complain create back your cache with the following command:

Code: Select all

sudo zpool set cachefile=/etc/zfs/zpool.cache tank
Note on 13, the cache was moved to /etc/zfs/, and your pool name might not be call tank if you named it something else.

nevets
Posts: 26
Joined: Tue Jun 23, 2020 3:54 am
Has thanked: 3 times
Been thanked: 5 times

Re: Upgrading to the new GhostBSD base on 13-STABLE

Post by nevets »

Hi Eric,
I used the iso to upgrade, however, the /etc/pkg/GhostBSD.conf doesn't reflect the content for FreeBSD13 - it was still the version 12 script.
I thought that if I used the iso I didn't need to do the other manual entry actions in this post, such as modifying the /etc/pkg/GhostBSD.conf file.
Behaviourally,
# sudo pkg update -f
reports no updates, however, Update Station utility shows that there are and loads them properly.
Was there an oversight in the iso release and should the /etc/pkg/GhostBSD.conf be updated in the next iso?
Cheers,
Steve.

User avatar
ericbsd
Developer
Posts: 1705
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 61 times
Been thanked: 112 times

Re: Upgrading to the new GhostBSD base on 13-STABLE

Post by ericbsd »

Where did you download the ISO?

nevets
Posts: 26
Joined: Tue Jun 23, 2020 3:54 am
Has thanked: 3 times
Been thanked: 5 times

Re: Upgrading to the new GhostBSD base on 13-STABLE

Post by nevets »


Post Reply