-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong DES are not completely discarted. #780
Wrong DES are not completely discarted. #780
Comments
@WiktorG351, could you also bump |
Actuially, I think that using λ grep -r error_exit
include/dts-functions.sh:error_exit() {
include/dts-functions.sh: [ "$_error_code" -ne 0 ] && error_exit "$_error_msg : ($_error_code)"
include/dts-functions.sh: error_exit "No supported chipset found, exit."
include/dts-functions.sh: error_exit "There is no Dasharo Entry Subscription available for your platform!"
include/dts-functions.sh: error_exit "Incorrect version format"
include/dts-functions.sh: error_exit "Cancelling flashing process..."
include/dts-functions.sh: error_exit "No update available for your machine"
include/dts-functions.sh: error_exit "No update available for your machine"
include/dts-functions.sh: error_exit "No update available for your machine"
include/dts-functions.sh: error_exit "No update available for your machine"
scripts/cloud_list:error_exit() {
scripts/cloud_list: [ "$_error_code" -ne 0 ] && error_exit "$_error_msg : ($_error_code)"
scripts/dasharo-deploy:[ -z "$SYSTEM_VENDOR" ] && error_exit "SYSTEM_VENDOR not given"
scripts/dasharo-deploy:[ -z "$SYSTEM_MODEL" ] && error_exit "SYSTEM_MODEL not given"
scripts/dasharo-deploy: error_exit "Bad option or resignation. Returning to main menu..."
scripts/dasharo-deploy: error_exit "Bad option. Returning to main menu..."
scripts/dasharo-deploy: error_exit "Aborting update process..."
scripts/dasharo-deploy: error_exit "Aborting update process..."
scripts/dasharo-deploy: error_exit "Dasharo Firmware is already installed. This script is only for\r
scripts/dasharo-deploy: error_exit "Dasharo Firmware is not installed. This script is only for\r
scripts/ec_transition: error_exit "No network connection to 3mdeb cloud, please recheck Ethernet connection"
scripts/ec_transition: error_exit "Board model $SYSTEM_MODEL is currently not supported"
scripts/ec_transition: error_exit "Board vendor: $SYSTEM_VENDOR is currently not supported"
scripts/ec_transition: error_exit "Device has already Open Source Embedded Controller firmware, aborting..."
scripts/ec_transition:[ -z "$SYSTEM_VENDOR" ] && error_exit "SYSTEM_VENDOR not given"
scripts/ec_transition:[ -z "$SYSTEM_MODEL" ] && error_exit "SYSTEM_MODEL not given" |
@WiktorG351, I will bump revision in the recipe by myself. |
Think of what? I cannot see a proposal on what we should change this to. Can you please elaborate what the problem is, and what the proposed solution is (if you have it in mind)? |
Component
Dasharo Tools Suite
Device
other
Dasharo version
No response
Dasharo Tools Suite version
Commit
3870e7b944d88d68821d7cdd83d70d6959348ed8
inDasharo/dts-scripts
repo or DTS v1.2.21Brief summary
Wrong DES are not completely discarted.
How reproducible
100%
How to reproduce
Expected behavior
If DES verification failed bad DES should be cleared from
/etc/cloud-pass
(actually entire file should be deleted).Actual behavior
DTS saves bad DES even after verification fail, so the DES will be showed by DTS UI.
Screenshots
Additional context
DTS is expected to clear bad DES while executing code from
/usr/sbin/dts
:But it seems that execution is being terminated by
error_exit()
somewhere incheck_se_creds()
, so code which is sopposed to clear bad DES is never being executed.Solutions you've tried
No response
The text was updated successfully, but these errors were encountered: