Franco Fichtner
5e860053e1
firmware: mask subscription in GUI output
2021-07-22 10:16:04 +02:00
Franco Fichtner
83cd07eda4
firmware: add version/date header here as well
2021-07-14 09:22:46 +02:00
Franco Fichtner
9dc9c4e864
firmware: add backend glue to support install probing of plugins #5037
...
Allows to list dependencies as well. Remove the JSON return, best to
use something as follows now:
# configctl firmware probe && configctl firmware product
2021-06-17 10:32:53 +02:00
Franco Fichtner
a759338381
firmware: push automatic flags to firmware for #5025
2021-05-31 14:49:27 +02:00
Franco Fichtner
0dbfddd864
firmware: exclude /etc/csh.cshrc for #4936
2021-04-22 17:16:10 +02:00
Franco Fichtner
35217ba0d1
firmware: if upstream package is missing complain; closes #4906
...
This points to a configuration error that should be resolved one
way or another.
2021-04-09 14:18:26 +02:00
Franco Fichtner
7d7aaa633d
firmware: separate error for "forbidden" #4906
2021-04-09 14:06:27 +02:00
Franco Fichtner
2fe4de6819
firmwre: make this clearer
...
Ideally, opnsense-update -M should replace this except
that -M is used to gain mirror access from other scripts
as well. Need to think about it.
2021-04-07 12:07:32 +02:00
Franco Fichtner
65ae6246e7
firmware: same here
2021-04-01 11:39:33 +02:00
Erik Inge Bolsø
2ec2b3d8f7
firmware/health.sh: refine missing/invalid signature message ( #4840 )
2021-03-18 14:19:53 +01:00
Franco Fichtner
c08a4fb9fd
firmware: small issue with lost init of pipe #4500
2021-03-08 19:11:22 +01:00
Franco Fichtner
70f856bf2f
firmware: emit api version string, second major iteration already #4500
2021-02-25 13:59:35 +01:00
Franco Fichtner
889e24c965
firwarme: abstract LOCKFILE away
...
Now we only deal with LOCKFILE in the firmware scripts folder.
2021-02-19 13:20:48 +01:00
Franco Fichtner
99944f462e
firmware: hide LOCKFILE behind small read script
...
One old bit of compat glue can kick the bucket as well.
2021-02-19 11:52:20 +01:00
Franco Fichtner
38b0e8ff6c
firmware: get rid of old naming convention; closes #4718
2021-02-19 11:43:03 +01:00
Franco Fichtner
eb6cbc0164
firmware: single spot for update/upgrade code #4718
2021-02-19 11:29:38 +01:00
Franco Fichtner
8c2ea1f344
firmware: for core that works, for crypto it does not
...
Since the fetch blocks some time and is not completely reliable
it doesn't really matter if we have it or not.
While here remove a bit of cruft.
2021-02-18 10:24:04 +01:00
Franco Fichtner
2caeb508fc
firmware: flush line for new package
2021-02-17 15:14:32 +01:00
Franco Fichtner
1e4aac005a
firmware: use cannonical -p and -t update
...
opnsense-update can now handle it correctly and we save another
invoke from here.
2021-02-17 15:03:23 +01:00
Franco Fichtner
e321ab47a6
firmware: no, not going to fix this mess #4500
2021-02-17 14:02:04 +01:00
Franco Fichtner
8a6642c862
firmware: lock pkg when not upgrading it
...
It can be snatched from any mirror if given which is very
bad when FreeBSD repo is enabled. A simple pkg-install
will pull in pkg and break the system.
2021-02-17 13:52:10 +01:00
Franco Fichtner
a55afaac12
firmware: add crypto package to health check #4500
2021-02-17 13:33:20 +01:00
Franco Fichtner
31ca550304
firmware: correct timestamp to reflect date(1) output
2021-02-17 09:47:01 +01:00
Franco Fichtner
2520f59669
firmwware: slight code updates for check #4500
2021-02-16 16:11:49 +01:00
Franco Fichtner
58b96bc114
firmware: third and last batch #4500
2021-02-16 15:59:37 +01:00
Franco Fichtner
d44a148899
firmware: second batch in check script #4500
2021-02-16 15:52:58 +01:00
Franco Fichtner
9a08ea91e9
firmware: settle on 4 spaces for indent, first batch, minor removals #4500
2021-02-16 15:44:04 +01:00
Franco Fichtner
0f1484b3a2
firmware: strict install policy using php version_compare() #4500
...
We have to see how this holds up in practice. Reinstall was considered
as well for further protection but that might be even trickier depending
on what locking and version tricks the user did to their install to
retain a particular (working) state.
2021-02-16 15:08:26 +01:00
Franco Fichtner
e4392fb854
firmware: pin critical updates to our repo #4500
...
While testing pkg was snatched from FreeBSD mirror, which isn't
advisable (nevermind that FreeBSD mirror was enabled in the first
place).
Do the same for the release type shift to avoid pivoting towards
third party repos for any reason whatsoever.
2021-02-16 15:03:56 +01:00
Franco Fichtner
9a01e5399d
firmware: UX and display tweaks
2021-02-16 10:31:04 +01:00
Franco Fichtner
31cefec61b
firmware: when config.xml looks like a factory reset register plugins/release #4500
...
This way the build can do all sorts of funny things and we will end up
with a consistent config.xml after boot. For people restoring other
config.xml that is not the case but in this scenario the user is likely
aware of what he or she is doing.
2021-02-16 10:05:27 +01:00
Franco Fichtner
4cf0720b66
firmware: merge updates and release type result parsing #4500
...
With this we get as much visibility as pkg can offer us. Merge
some code in the process as the release type shift is nothing
special anymore.
2021-02-16 00:40:20 +01:00
Franco Fichtner
e283a5942d
firmware: UX and JS changes #4500
2021-02-15 19:52:15 +01:00
Franco Fichtner
8d7ce38678
firmware: add upgrade sets to status if found and required #4500
2021-02-15 13:51:54 +01:00
Franco Fichtner
2ecd584c9a
firmware: firmware-* files private to check.sh #4500
...
Remove unused JS while here.
2021-02-15 13:07:00 +01:00
Franco Fichtner
52594df3e3
firmware: simplify upgrade procedure #4500
2021-02-15 12:05:16 +01:00
Franco Fichtner
14416172b1
firmware: switch to new update procedure #4500
2021-02-15 11:33:44 +01:00
Franco Fichtner
9fb0b8d677
firmware: remove compat code from plugin register script #4500
...
We always assume metadata is present otherwise we end up
with undefined behaviour.
2021-02-15 09:15:45 +01:00
Franco Fichtner
88aa77ecda
firmware: assorted changes for #4500
...
o Do not load the text changelog for the GUI as it is unused
o Rename product_name to product_id for consistency
o Always hint at product_target so correct changelog is displayed
o Rename type to target for consistency
o Add distinguishable labels to changelog view actions
o Return JSON when argument is given for easier debug
2021-02-14 13:50:14 +01:00
Franco Fichtner
64640958df
firmware: for check also figure out release type shift #4500
2021-02-12 21:58:05 +01:00
Franco Fichtner
65f212b537
firmware: bubble this down, more to come #4500
2021-02-12 21:41:22 +01:00
Franco Fichtner
9679c969f6
firmware: remove type.install, bring code closer together #4500
2021-02-12 19:59:48 +01:00
Franco Fichtner
10eab0ae68
firmware: get rid of firmware type name #4500
...
From the user side no functional changes. What this can do
now is decide whether to update or do a release type transition.
In most cases it is safer to get all updates first and then
do a release type transition afterwards. This can follow when
firmware type install can be shelved.
2021-02-12 19:37:58 +01:00
Franco Fichtner
d00a9f3c16
firmware: correct install time and loop check_package #4500
...
The former is so we have the date of the install point, not the
date of the package build time. And, secondly, if we loop the
argument for check through the JSON we know to put the result
into perspective later on.
2021-02-12 14:48:20 +01:00
Franco Fichtner
db87488b40
firmware: remove PIPEFILE #4500
2021-02-12 12:11:38 +01:00
Franco Fichtner
67e3da7600
firmware: no more PIPEFILE in security audit #4500
2021-02-12 11:54:09 +01:00
Franco Fichtner
37664543e1
firmware: extent connectivity script, add to shell #4500
...
We can actually get rid of PIPEFILE if we do not need the
return value of the command. More simplification on the
way.
2021-02-12 11:53:04 +01:00
Franco Fichtner
f059f6cd59
firmware: bugs and tweaks #4500
2021-02-12 10:54:42 +01:00
Franco Fichtner
35d88e8da4
firmware: support repository info for updates #4500
2021-02-12 00:03:32 +01:00
Franco Fichtner
724167b44b
firmware: remove cruft, show log during check #4500
2021-02-11 22:14:08 +01:00