OPNsense Forum
Archive => 21.1 Legacy Series => Topic started by: hakuna on July 12, 2021, 06:42:05 am
-
Hi guys,
Due to an unexpected adventure after updating my baremetal to 21.1.7_1, I would like to improve the "rollback plan" I currently have in place.
To do that I did a fresh FreeBSD 12.1 install in order to have ZFS, I've followed the documentation here: https://github.com/opnsense/update
But when I run the script, things go sideways. This is the script:
# pkg install ca_root_nss
# fetch https://raw.githubusercontent.com/opnsense/update/master/bootstrap/opnsense-bootstrap.sh.in
# sh ./opnsense-bootstrap.sh.in -r "major.version"
Long story short, the script calls this guys URL="https://github.com/opnsense/core/archive"
But there isn't such URL, it is a 404 for archive.
PS: I know that somewhere in January next year OPNSense will support snapshot, but I wanna solve this now before I apply any other update onwards, but unfortunately I am having this issue.
Thank you for any tips.
-
You can install 21.7.r1 and it should work just fine. I'm in the process of upgrading all the FWs to it by reinstalling on ZFS.
After the first boot in 21.7 with the configuration restored check for updates (12 in the console) and that step will switch you to LibreSSL if that is what you're using and reinstall all the needed packages.
The last step is to run the automatic plugin troubleshooter which will reinstall (almost) all needed plugins. I just reported that os-chrony seems to be missed but you can install it manually and the existing config for it will kick in on the spot.
-
I found the problem, the script says:
sh ./opnsense-bootstrap.sh.in -r "major.version"
So I was running:
sh ./opnsense-bootstrap.sh.in -r "21.1"
Only after asking for help, I saw a 2019 post so I tried:
sh ./opnsense-bootstrap.sh.in -r 21.1
Without quotes and it worked. Yeah, feeling dumb pretty 100%
Well, good to know it works.
I am testing everything on a VMWare first before touching my baremetal.
-
You can install 21.7.r1 and it should work just fine. I'm in the process of upgrading all the FWs to it by reinstalling on ZFS.
After the first boot in 21.7 with the configuration restored check for updates (12 in the console) and that step will switch you to LibreSSL if that is what you're using and reinstall all the needed packages.
The last step is to run the automatic plugin troubleshooter which will reinstall (almost) all needed plugins. I just reported that os-chrony seems to be missed but you can install it manually and the existing config for it will kick in on the spot.
If you don't mind me bothering you, I had to login (press eight) then call opnsense-installer. Everything was going as expected but it refuses to install into the VMWare disk where FreeBSD is running. It says like busy, no free space, etc, and that is it.
I wish there were more documentation regarding this :-\
Everytime something doesn't work as expected, you need to beat Google to death in order to find something close enough to help you to solve your problem :-\
-
I got things back on track...
Yeah, I am gonna need to spend some time exploring things and learning from mistakes.
Thanks for all the help.
-
-r 21.1
is the same as
-r '21.1'
is the same as
-r "21.1"
is the same as
-r 2"1"'.1'
If the page wasn't found it was likely not retuned by GitHub.
Further evidence: https://github.com/opnsense/update/issues/72
Please don't jump to conclusions that nothing really works until you figure it out. ;)
Cheers,
Franco