Commit Graph

48 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
1e152dc6fd scripts: ec_transition: delete surplus definitions
These veriables are already defined in dts-environment.sh, and the
ec_transition sources it.

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
Daniil Klimuk
b1202bfa4e add missing shellcheck source statements
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:25:43 +01:00
Pawel Langowski
6f16bf454e Send all log files to cloud
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-06 13:53:21 +01:00
Michał Iwanicki
1598965c67 dts-boot: use -f to check if file exists
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-10-22 17:16:07 +02:00
Daniel Mrzygłód
787723f82f scripts/dts-boot: change FUM_EFIVAR path
This change is related with meta-dts changes and resolves
Dasharo/meta-dts#157

Signed-off-by: Daniel Mrzygłód <daniel.mrzyglod@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-10-22 17:16:07 +02: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