Commit Graph

31 Commits

Author SHA1 Message Date
Daniil Klimuk
f559d8dc4b Fix pre-commit
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-08-06 15:15:23 +02:00
Daniil Klimuk
c282a5ff3b add initial deployment for Dasharo (Slim Bootloader+UEFI)
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-08-06 15:15:22 +02:00
Georg Hackel
2f0de3815b DDP Credentials: Fix password indentation
so input is on same height as email
2025-06-20 11:28:29 +02:00
Pawel Langowski
39021f596c Fix files to conform to shfmt
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-04-15 14:48:13 +02:00
Pawel Langowski
cd32545304 include: Fix checking for DPP access
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-24 12:31:41 +01:00
Pawel Langowski
7813db0696 Use MinIO for HCL reports
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-21 10:18:17 +01:00
Pawel Langowski
77e08e8a45 Hide minio download output
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-21 10:18:16 +01:00
Pawel Langowski
977ceca17c Use MinIO for DPP binaries
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-21 10:18:16 +01:00
Pawel Langowski
7fd119f19a dts-subscription: Initialize _check_dwn_req_resp_uefi_cap
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-03 15:15:08 +01:00
Daniil Klimuk
0af94a3818 include: dts-subscription: fix DTS Extensions messages
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-01-14 15:27:34 +01:00
Michał Iwanicki
9e678e52eb logging: redirect more stderr to ERR_LOG_FILE
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-01-10 10:56:53 +01:00
Daniil Klimuk
27df8825c6 dts-subscription: check_for_dasharo_firmware: fix checking for creds
file

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-12-23 08:55:20 +01:00
Eduard Kaverinskyi
f1cd35eae9 dts-subscribtion.sh: Fix grep help message between commands (#52)
* dts-functions.sh, dts-subscription.sh: fix empty credentials input

Add check for empty dpp credentials input from the user.
If at any moment entered credentials are empty, print warning and abort the process.

Signed-off-by: Eduard Kaverinskyi <eduard.kaverinskyi@3mdeb.com>
Co-authored-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>

* dts-functions.sh: revert deleted _result var

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>

---------

Signed-off-by: Eduard Kaverinskyi <eduard.kaverinskyi@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
Co-authored-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Co-authored-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-12-20 15:36:19 +01:00
Pawel Langowski
23c6ed7f2a Use uppercase Enter
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-21 14:28:16 +01:00
Daniil Klimuk
472ab6fff2 include: dts-subscription: move warning print outside login_to_dpp_server
login_to_dpp_server should only try to login, the decision to print
warning or not should be done outside this function basing on the output
of this function. Otherwise every time the function is being called the
warning could be printed too, which is not always wanted.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-20 12:52:07 +01:00
Daniil Klimuk
0cd3f0a534 Ask only for enter to continue
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-20 12:52:01 +01:00
Daniil Klimuk
adb410e65e include: dts-subscription: print warning instead of error
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 17:43:06 +01:00
Daniil Klimuk
7087b789e0 include: dts-subscription: add UEFI Capsule Update
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 17:42:54 +01:00
Daniil Klimuk
183ae6ad0f include: dts-subscription.sh: fix creds problem warning printing
Before:

Something may be wrong with the DPP credentials or you may not

                have access to Dasharo Firmware. If so, consider getting Dasharo

                Subscription and improving security of your platform!

Now:

Something may be wrong with the DPP credentials or you may not
have access to Dasharo Firmware. If so, consider getting Dasharo
Subscription and improving security of your platform!

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk
5d310535f5 fix sourcing libs
Cause of this patch: After I have added and integrated HAL - I have
added following line in dts-boot:

source $DTS_HAL

This was needed because I have used some fuctions from the HAL in the
script.

Inside DTS_HAL I had following line:

source $DTS_ENV

Because I have used some vars from the DTS_ENV in the HAL.

The problem was, that I had another line in DTS_ENV:

source $DTS_HAL

So, I got following boot workflow:

Boot
|
v
dts-boot
|   /-------\
v   v       |
DTS_HAL->DTS_ENV
           .
............
v
dts

Instead of sourcing some scripts and then launching dts script - I got a
loop betwee DTS_HAL and DTS_ENV. Therefore I decided to clean up
sourcing a bit.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:36 +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
423221471d include: dts-functions: clean up platforms configuration
Configurations of all supported platforms are done inside
board_config function as switch/case Bash statements. The list of
supported platforms has grown a lot since then, and the function became
unreadable, so adding and managing configurations became difficult and
error-prone.

This commit adds some default configuration values as well as tries to
reuse some configuration code.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:30 +01:00
Pawel Langowski
35afe437e4 include/dts-subscription.sh: Redirect mc error to error file and print message
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-10-22 11:58:44 +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