Naive Upgrade 14.3 non-pkgbase to 15 pkgbase
This would almost certainly be better with pkgbasify but YOLO gotta YOLO
# pkg -o ABI=FreeBSD:15:amd64 upgrade -r pkg-base FreeBSD-kernel-generic
# shutdown -r now
That worked, let's keep going. Gotta bootstrap pkg first tho.. nope why
isn't ABI respected?
# pkg -o ABI=FreeBSD:15:amd64 bootstrap -f
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
pkg: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended
pkg(8) is already installed. Forcing reinstallation through pkg(7).
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait...
^C
# pkg-static -o ABI=FreeBSD:15:amd64 bootstrap -f
pkg-static: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
pkg-static: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended
pkg(8) is already installed. Forcing reinstallation through pkg(7).
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait...
^C
# pkg -o ABI=FreeBSD:15:amd64 update
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
pkg: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
Fetching meta.conf: 100% 179 B 0.2kB/s 00:01
Fetching data.pkg: 100% 10 MiB 1.1MB/s 00:10
Processing entries: 0%
Newer FreeBSD version for package ztop:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1500063
- running userland: 1500000
Ignore the mismatch and continue? [y/N]: y
Processing entries: 100%
FreeBSD repository update completed. 36250 packages processed.
Updating FreeBSD-base repository catalogue...
Fetching meta.conf: 100% 179 B 0.2kB/s 00:01
Fetching data.pkg: 100% 60 KiB 61.9kB/s 00:01
Processing entries: 100%
FreeBSD-base repository update completed. 572 packages processed.
Updating pkg-base repository catalogue...
pkg-base repository is up to date.
Updating pkg repository catalogue...
pkg: Repository pkg has a wrong packagesite, need to re-create database
Fetching meta.conf: 100% 179 B 0.2kB/s 00:01
Fetching data.pkg: 100% 438 KiB 448.4kB/s 00:01
Processing entries: 100%
pkg repository update completed. 1427 packages processed.
All repositories are up to date.
that seems better?
OK I'm expecting this to break midway through.
# pkg -o ABI=FreeBSD:15:amd64 install -r pkg-base -g FreeBSD-\*
OK it didn't bork, so lets add the loader and clean up
# cp /boot/loader.efi /boot/efi/efi/freebsd/loader.efi
# rm -rf (fd pkgsave / |grep -v /etc |head -10000)
# rm -rf (fd pkgsave / |grep -v /etc |head -10000)
# rm -rf (fd pkgsave / |grep -v /etc |head -10000)
now etc
# cd /etc/
# rm rc.d/*.pkgsave defaults/*.pkgsave ssl/*.pkgsave mtree/*.pkgsave rc.*.pkgsave ttys.pkgsave
# rm devd/*.pkgsave net*.pkgsave mail/*.pkgsave periodic/*/*.pkgsave
# rm devd.conf.pkgsave gettytab.pkgsave gss/mech.pkgsave inetd.conf.pkgsave \
newsyslog.conf.d/opensm.conf.pkgsave pam.d/ftp.pkgsave pccard_ether.pkgsave \
phones.pkgsave pkg/FreeBSD.conf.pkgsave printcap.pkgsave protocols.pkgsave \
rc.pkgsave regdomain.xml.pkgsave remote.pkgsave services.pkgsave shells.pkgsave \
# mv sysctl.conf.pkgsave sysctl.conf
now serious stuff
# mv master.passwd.pkgsave master.passwd
# mv group.pkgsave group
# vipw
vipw: password list updated
# rm ssh/moduli.pkgsave
append these custom settings to sshd_config
Port 2200
PermitRootLogin prohibit-password
KbdInteractiveAuthentication no
UsePAM no
UseDNS no
lets see if this boots (15.0-ALPHA1 but old userland)... it does! well well.
now we can do the pkg dance from before:
- bootstrap
- stash list of packages
- upgrade everything
# pkg-static bootstrap -f
pkg-static: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended
pkg(8) is already installed. Forcing reinstallation through pkg(7).
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-2.2.2...
package pkg is already installed, forced install
Extracting pkg-2.2.2: 100%
# pkg prime-origins | sort | uniq > /etc/packages.lst
# pkg delete (pkg info | egrep -v '^(FreeBSD|pkg)-' | cut -wf 1)
# pkg prime-origins | sort | uniq
base
ports-mgmt/pkg
# pkg install -r FreeBSD tmux rsync neovim htop fish ripgrep fd-find zoxide doas tarsnap \
ca_root_nss haproxy-lua zerotier
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
FreeBSD is up to date.
The following 34 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
ca_root_nss: 3.115 [FreeBSD]
...