Commit Graph

497 Commits

Author SHA1 Message Date
Franco Fichtner 43c2b39167 update: ready for 24.1 2024-01-25 14:22:47 +01:00
Franco Fichtner b1fcf22eb9 make: consolidate BINDIR and MANDIR (new location) 2024-01-22 09:50:49 +01:00
Franco Fichtner edd410537d README: fix typo 2023-12-21 08:07:06 +01:00
Franco Fichtner fa4f0c4cf9 update: avoid updating .cshrc/.profile
Since /var is no longer MFS we can remove the previous exclusions.
2023-12-19 09:00:50 +01:00
Franco Fichtner bcc09b985b update: refactor slightly to avoid code duplication 2023-11-15 11:34:45 +01:00
Franco Fichtner 942dc09563 update: aux set fetch URL construction is non-trivial
1. Always use amd64 as that architecture is always available.
2. Use the default mirror unless a subscription key is found.
3. Use required ABI pointing to community/business selection.

While here fix an early return in parsing the subscription.
2023-11-14 09:16:17 +01:00
Franco Fichtner bd59f2dff5 update: fix pkg+ lookup now that it is gone; closes #87 2023-10-26 08:36:42 +02:00
Franco Fichtner 55e977eb14 update: mute "Files x and y differ" message 2023-10-25 07:43:33 +02:00
Franco Fichtner d530c45b43 update: fix the mirror read (no more pkg+ prefix) 2023-10-20 14:13:10 +02:00
Franco Fichtner 89f58b22a4 bootstrap: base CA should avoid dealing with ca_root_nss 2023-10-10 12:09:30 +02:00
Alejandro Criado-Pérez d334c1b41b Text corrections 2023-08-25 06:28:38 +02:00
Franco Fichtner b4867b7561 update: switch to 23.7 2023-07-19 08:21:23 +02:00
Franco Fichtner f7312085fa update: ensure directory consistency
Only remove .old when there and only move current to
.old when there.  Hepls with empty debug directories.
2023-06-08 13:32:30 +02:00
Franco Fichtner d7efe98272 update: support deferred kernel set install
"-u" will no longer install the kernel directly, but the core
has two hooks for it (one main in upgrade script) and one for
manual recovery on reboot (for scripts that expect it to work
with "-u" and reboot).  The reason we needed to split is to do
pre-upgrade hooks that decide if an upgrade will be performed
or if we need to cancel because the migration scripts fail.

While here fix the "-e" option printing "Nothing to do." and
adjust the "Reboot now." message printing a bit.
2023-06-06 10:13:44 +02:00
Franco Fichtner 113ec3e2c0 update: move -K option to -x
We need the former to be a bit more in line with the -B/-P options.
2023-06-06 08:45:47 +02:00
Franco Fichtner 97a274bd27 fetch: forgot to support -w 2023-05-23 15:08:49 +02:00
Franco Fichtner b6664f5cd8 src: -T 30 is fine, discussed with @adschellevis 2023-05-15 13:10:01 +02:00
Franco Fichtner 6fdc34bc7c src: fetch -a should also set -w 1, reduce -T to 20
Otherwise retry is immediate hammering the server under certain
circumstances.  Full timeout is probably better reduced a bit.
2023-05-15 12:34:50 +02:00
Franco Fichtner fa3f372b62 README: clarify and update, no more OPENSSL use either 2023-02-07 10:48:20 +01:00
Franco Fichtner d01ccb5666 LICENSE: sync 2023-02-07 10:45:54 +01:00
Franco Fichtner 90ebff5e88 bootstrap: remove flavouring 2023-02-07 10:45:32 +01:00
Franco Fichtner 2596e330a3 revert: switch to new flavour-less layout 2023-02-07 10:42:06 +01:00
Franco Fichtner ac7a8bd2aa update: remove -N and FLAVOUR use from packages set 2023-02-07 10:12:21 +01:00
Franco Fichtner a795681ae8 update: almost time for 23.1 2023-01-19 15:48:03 +01:00
Franco Fichtner b3bf3f4d13 update: return subscription key via -K if it exists 2022-09-27 08:15:20 +02:00
Franco Fichtner 831f21be02 update: move registration of pkgs version to end of successful run
It would seem that in some cases this would fail for the usual reasons,
but then the system would think it was already on e.g. 22.7 when in
reality it refused to install it (completely).
2022-08-12 11:26:48 +02:00
Franco Fichtner 571ac6cd62 bootstrap: reset pkgs set marker to proper version
PR: https://forum.opnsense.org/index.php?topic=29582.0
2022-08-01 15:59:06 +02:00
Franco Fichtner d5ec887efa patch: correct previous 2022-07-25 08:19:04 +02:00
Franco Fichtner d669b0f24e patch: only remove "sh" suffix for installer/update repos 2022-07-22 09:09:26 +02:00
Franco Fichtner d22f6ee254 update: prep for 22.7 release 2022-07-14 15:24:35 +02:00
Franco Fichtner df8bd0856f Revert "update: to make upgrade log available from GUI add probe option"
We will just test for log output as exit codes are harder to deal with
from a PHP perspective and this makes it a bit simpler again.

This reverts commit 47cdc8c22f.
This reverts commit 2a0ad828e9.
2022-07-14 15:22:15 +02:00
Franco Fichtner 2a0ad828e9 update: bump date 2022-07-05 11:34:45 +02:00
Franco Fichtner 47cdc8c22f update: to make upgrade log available from GUI add probe option 2022-07-05 11:20:44 +02:00
Franco Fichtner 8425bb9ef7 revert: switch to .pkg extension 2022-06-08 11:02:18 +02:00
Franco Fichtner 7f6e385633 code: fix quoting for empty var 2022-02-28 12:51:10 +01:00
Franco Fichtner f2b083567a code: snapshot mode 2022-02-24 08:58:52 +01:00
Franco Fichtner 52e0662e20 src: style fix on $((...)) use 2022-02-23 09:43:45 +01:00
Franco Fichtner ba68be3eec Revert "update: while we write these files, try to read them via opnsense-version"
This reverts commit 3a18316754.
Relying on opnsense-version early on isn't a good idea.
2022-02-09 19:46:55 +01:00
Franco Fichtner da6fd912ba revert: pull base/kernel support
Not documented, never used, opnsense-update is better.

Also see: https://github.com/opnsense/update/issues/58
2022-02-08 20:23:51 +01:00
Franco Fichtner 9536de648d revert: add manual page changes for -z
-z does clash with kernel and base revert, but it's not really meant
to do it since opnsense-update takes both -z and -r into account.
The use cases for sets in opnsense-revert, however, are fringe at
best and we always recommend using opnsense-update instead.

Sets might be subject to future removal from opnsense-revert.
2022-02-08 14:51:34 +01:00
Franco Fichtner 8178290cf4 revert: off by one (directory) 2022-02-08 14:42:36 +01:00
Franco Fichtner 9ca0826183 revert: snapshot mode for fun, no docs yet 2022-02-08 14:38:22 +01:00
Franco Fichtner 3a18316754 update: while we write these files, try to read them via opnsense-version
It will help with future migration.
2022-01-24 10:18:35 +01:00
Franco Fichtner be11a225d5 update: patch in support for emitting the installed versions 2022-01-24 09:45:52 +01:00
Franco Fichtner dcb2cfbda6 update: bundle for 22.1 2022-01-24 08:50:51 +01:00
Franco Fichtner 10f22f3de2 update: fix copy+paste 2022-01-24 08:48:44 +01:00
Franco Fichtner 9b6682f84f update: at least remember the last full packages upgrade
When upgrading to prelease with the development version
after all is done and there are no other updates available
the upgrade will try to loop over packages set only since
it has no reference for its version.

This doesn't solve the update path problem that moves the
packages to newer versions no longer matching the packages
set, but at least we can start trusting it to remember the
last set it used for upgrade to not pull it in again.

This also works for subsequent updates where you would see
the packages again (22.1.r1 to 22.1.r2 minor update), but
when done once it's also silent about it.
2022-01-20 11:10:22 +01:00
Franco Fichtner 0ac0721b2e update: move core.lock to pkgs.lock
We do want to create a version file to avoid silly
update loops which are already prevented when using
the kernel/base sets.

The problem is that a packages set does not have a
version so we need to create one but cannot clobber
the "core" version file since that one comes from a
possibly unrelated update.
2022-01-20 10:48:30 +01:00
Franco Fichtner c17f63e4e8 update: add -G to read the upgrade log
This can be helpful for debugging failed upgrades.
2022-01-19 15:07:03 +01:00
Franco Fichtner 4b1dae83ab code: fix typo 2022-01-18 11:46:25 +01:00