Commit Graph

36 Commits

Author SHA1 Message Date
Daniil Klimuk
6d53e2cf05 integrate HAL
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:36 +01:00
Daniil Klimuk
a99ba0254d scripts: dasharo-deploy: installation_workflow: fix downloading and
verifying

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:39 +01:00
Daniil Klimuk
3910890fe4 scripts: dasharo-deploy: add some collors to output
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:39 +01:00
Daniil Klimuk
61f68f01b0 remove -x flag from all files permissions
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
97aebd817f scripts: dasharo-deploy: pre-commit fixes
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
2aef6c34f4 Add more comments
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
05606c728d scripts: dasharo-deploy: delete backup option
This code is currently used inside dasharo-deploy only.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
6b3eee91a3 scripts: dasharo-deploy: pre-commit fixes
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
fd45d4e408 scripts: dasharo-deploy: add UEFI Capsule Update workflows
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:37 +01:00
Daniil Klimuk
bebd97bf18 scripts: dasharo-deploy: clean up installation and update funcs
The installation workflows must be as linear as possbile for better
readability and scalability.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:37 +01:00
Daniil Klimuk
c584d6ecf5 scripts: dasharo-deploy: add UEFI Capsule Update configuration
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:37 +01:00
Daniil Klimuk
4a80617bb2 scripts: dasharo-deploy: rework deploying config
Before deploing we do some configuration based on the list of the
firmware versions the target supports and on DPP subscription user
has.

Previously this configuration lived beside the code responsible for
deploying, as a result, the deploying workflows was messy, had nesting
levels over 3, and nonlinear and complex logic.

This commit tries to separate this configuration and deploying to make
it more readable and scallable.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:37 +01:00
Daniil Klimuk
ca790b3e6c scripts: dasharo-deploy: rework display_warning func
This function is useful not unly during update workflow, but every time
firmware is being deployed

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:37 +01:00
Daniil Klimuk
e6d4617067 scripts: dasharo-deploy: add check_for_firmware_access func
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:37 +01:00
Daniil Klimuk
cee2d5b41f use test -n instead of test -v
"test -v" checks whether a variable has been declared, it does not check
its value. We sometimes use "unset" for some variables, and then check
again with "test -v". The problem is, "unset" erases variable value, but
the variable still exists, so the "test -v" will be true before, as well
as after the "unset".

We must use "test -n" (whether a variable holds non-zero length
string value) and "test -z" (whether a variable holds zero length string
value) to check string values of variables. This way the "unset" will
work.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:36 +01:00
Daniil Klimuk
9fee55d2c9 scripts: dasharo-deploy: dont use hash variables in conditions
Variables with links to hashes of the firmware binaries are always set,
use variables with links to firmware binaries instead.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:36 +01:00
Pawel Langowski
098102eef2 Check if Dasharo can be installed
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-10-17 10:22:51 +02:00
Eduard Kaverinskyi
2932f96a3a scripts/dasharo-deploy: make enter to count as Y in (Y|n) prompts 2024-09-24 15:05:33 +02:00
Pawel Langowski
bfa2a3168f Add verbose option to dts-menu and enable sending logs
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-09-17 10:09:14 +02:00
Maciej Pijanowski
084d27d939 tests: port from meta-dts
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-07-25 22:22:33 +02:00
Maciej Pijanowski
3529517c2a port pcengines + seabios deploy changes
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-07-25 22:11:25 +02:00
Daniil Klimuk
db23885453 Use DPP instead of DES
According to:
https://github.com/Dasharo/presentations/blob/main/dug_6_shameless_plug.md#dasharo-cooperation-models

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-07-22 16:52:27 +02:00
Daniil Klimuk
18dc2760fb rework check_network_connection function
Split the function into two parts and name them accordingly.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-07-22 16:45:06 +02:00
Michał Iwanicki
3477ab69b7 revert: Remove separate EC update when updating Dasharo
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-07-18 18:32:05 +02:00
Michał Iwanicki
b22d52d485 dasharo-deploy: disable shellcheck error
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-07-18 12:38:57 +02:00