Commit Graph

112 Commits

Author SHA1 Message Date
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
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
Wiktor Grzywacz
f89f49e67f scripts/local-deploy.sh: added 2024-07-24 22:31:03 +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
d80465ed56 add DES submenu
This commit adds dynamically rendered submenu for functionality
implemented by private DES packages installed from Dasharo server.
Every installed package extends the submenu accroding to its needs.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-07-22 16:45:06 +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
Daniil Klimuk
6e2ba4b9ca add package managment
This commit adds package management functionality: downloading and
installing packages from Dasharo server. The packages are private, the
access is granted after entering DES credentials.

Additionally this commit reworks codebase a bit, to make it more clear.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-07-22 16:45:05 +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
Michał Iwanicki
d55a21f2fd dts-functions & dasharo-deploy: Install only EC for V5xTU
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-07-18 12:38:57 +02:00
Michał Iwanicki
1932a7823e dts: start/stop sshd.service instead of socket
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-07-10 14:23:13 +02:00
Michał Iwanicki
77ac179142 dts: Remove separate EC update when updating Dasharo
EC update will be done by firmware after first reboot.

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-06-11 12:14:13 +02:00