Michał Iwanicki
4b0cc017ef
include: Add check for FirmwareUpdateModeRT
...
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com >
2026-02-11 17:50:50 +01:00
Michał Iwanicki
5ab9b6a049
Merge pull request #142 from Dasharo/pre-commit-ci-update-config
...
pre-commit: autoupdate hooks
2026-02-10 09:40:21 +01:00
Michał Iwanicki
05d5f157e5
Merge pull request #145 from Dasharo/fum-capsule-fuse-fixes
...
dasharo-deploy: expand fuse warning and make it more explicit
2026-02-10 09:34:51 +01:00
Michał Iwanicki
ef6ba4ccfa
dasharo-deploy: add capsule & fum checks
...
Workaround for https://github.com/Dasharo/dasharo-issues/issues/1759
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com >
2026-02-09 14:43:10 +01:00
Michał Iwanicki
ce7d67b1ad
dasharo-deploy: expand fuse warning and make it more explicit
...
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com >
2026-02-09 14:43:10 +01:00
Mateusz Kusiak
7c7884437b
login_to_dpp_server: Add password check
...
Add a check in login_to_dpp_server() to catch corner case scenarios when
password changes.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com >
2026-02-09 10:18:40 +01:00
Mateusz Kusiak
3779240997
Credentials: Create a backup file
...
The issue is, when the user wants to change credentials, and the
credentials they use are not valid, the credentials will reset.
Keep a backup of credentials file so it can be restored if new
credentials are invalid.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com >
2026-02-09 10:08:01 +01:00
Mateusz Kusiak
b643f402e7
get_dpp_creds: remove empty lines for creds
...
Credentials are wrapped in empty lines top and bottom. Remove them.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com >
2026-02-09 10:08:01 +01:00
Mateusz Kusiak
1d5d6d174c
login_to_dpp_server: fix check if logged in
...
Check for validating if user email is set for alias was overly
optimistic. Short logins like "a" would false-positively trigger `grep`.
Fix the if statement to instead check if alias exists at all.
Fixes: https://github.com/Dasharo/dasharo-issues/issues/1578
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com >
2026-02-09 10:07:57 +01:00
Mateusz Kusiak
9187e47a7f
get_dpp_creds: clean creds file on new creds
...
If new credentials were specified, and they're not empty, overwrite the
last credentials file.
Fixes: https://github.com/Dasharo/dasharo-issues/issues/1463
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com >
2026-02-09 09:57:27 +01:00
Mateusz Kusiak
075743e3a3
get_dpp_creds: Do not allow empty creds
...
Do not allow empty credentials nor spaces in the middle.
Fixes:
* https://github.com/Dasharo/dasharo-issues/issues/1326
* https://github.com/Dasharo/dasharo-issues/issues/1589
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com >
2026-02-09 09:57:13 +01:00
Mateusz Kusiak
b952a103d2
verify_artifacts: drop sig_result
...
The wrapper for catching sig_result simply does not work. It captures
nothing and just prints redundant empty line. Drop catching this at it
is not used at all.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com >
2026-02-05 11:10:02 +01:00
Michał Iwanicki
5117404a1d
dasharo-deploy & mock: check return value of cap_upd_tool & add mock
...
Print error and exit if queueing capsule update fails. Mention that most
common case is enabled ME and print link to known issues describing it
in more details along with solution.
Modify cap_upd_tool mocking so we can test failures.
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com >
2026-01-29 11:44:57 +01:00
Danik Klimuk
66fb70522a
Merge pull request #143 from Dasharo/fix-msi-romhole-migration
...
Fix MSI ROMHOLE migration.
2026-01-22 09:37:38 +01:00
Daniil Klimuk
207ef83d42
scripts: dasharo-deploy: quote variables in romhole_migration
...
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-22 09:22:36 +01:00
Daniil Klimuk
3e034d38f4
scripts: dasharo-deploy: fix typos, clarify ROMHOLE comments
...
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-21 17:27:50 +01:00
Daniil Klimuk
6f4b0d8729
scripts: dasharo-deploy: prevent ROMHOLE migration from CBFS
...
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-21 14:56:04 +01:00
Daniil Klimuk
47e394d25f
scripts: dasharo-deploy: add error_check to every cbfstool that
...
modifies firm. in romhole_migration
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-21 14:33:40 +01:00
Daniil Klimuk
fd25c91d18
include: hal: common-mock-func: add TEST_READ_ROMHOLE_FAIL
...
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-21 14:33:40 +01:00
Daniil Klimuk
0af84fa82c
scripts: dasharo-deploy: exit during ROMHOLE migration issues
...
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-21 14:33:32 +01:00
Daniil Klimuk
ae45c8d81c
scripts: dasharo-deploy: romhole_migration: do not use grep -q with pipe
...
Such combinatoin can cause async. execution and issues with profile
logging.
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-21 13:57:48 +01:00
Daniil Klimuk
55600508f0
include: hal: common-mock-func: enable controlling of ROMHOLE migration
...
source and destination
will be usefull for unit testing of some conditions in romhole_migration
func.
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-21 13:57:40 +01:00
Daniil Klimuk
f4cdb258ad
add TEST_ROMHOLE_CBFS_MIGRATION
...
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-20 19:45:49 +01:00
Daniil Klimuk
6ab3a0bb15
scripts: dasharo-deploy: add ROMHOLE migration to CBFS
...
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-20 19:45:19 +01:00
Daniil Klimuk
11c5c46bb8
scripts: dasharo-deploy: add ORMHOLE migration to update and Heads
...
trasition workflows
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com >
2026-01-20 14:10:17 +01:00