-
Notifications
You must be signed in to change notification settings - Fork 7
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
distro: dts-scripts: fix check_for_dasharo_firmware #212
Conversation
Signed-off-by: Daniil Klimuk <[email protected]>
The build test will fail because Dasharo/dts-scripts#58 is not merged, so the tests should be rerun after merging the related PR. Manual tests: Some of the credentials are empty: *********************************************************
R to reboot P to poweroff S to enter shell
K to launch SSH server L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4
Enter logs key:
Logs key is empty, discarding credentials...
Press Enter to continue. *********************************************************
R to reboot P to poweroff S to enter shell
K to launch SSH server L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4
Enter logs key: xxx
Enter firmware download key:
Download key is empty, discarding credentials...
Press Enter to continue. *********************************************************
R to reboot P to poweroff S to enter shell
K to launch SSH server L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4
Enter logs key: xxx
Enter firmware download key: xxx
Enter password:
Password is empty, discarding credentials...
Press Enter to continue. Fake credentials: *********************************************************
R to reboot P to poweroff S to enter shell
K to launch SSH server L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4
Enter logs key: xxx
Enter firmware download key: xxx
Enter password: xxx
Dasharo DPP credentials have been saved
Checking for Dasharo firmware...
Waiting for network connection ...
Network connection have been established!
Checking if board is Dasharo compatible.
There is no Dasharo Firmware available for your platform.
Your credentials give access to:
Dasharo Pro Package (DPP): NO
DTS Extensions: NO
Press Enter to continue True credentials: *********************************************************
R to reboot P to poweroff S to enter shell
K to launch SSH server L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4
Enter logs key: xxx
Enter firmware download key: xxx
Enter password: xxx
Dasharo DPP credentials have been saved
Checking for Dasharo firmware...
Waiting for network connection ...
Network connection have been established!
Checking if board is Dasharo compatible.
There is no Dasharo Firmware available for your platform.
Your credentials give access to:
Dasharo Pro Package (DPP): NO
DTS Extensions: YES
Checking for available DPP packages...
Installing available DPP packages...
Installing package some-package-git-r0.core2_64.rpm...
Downloading package some-package-git-r0.core2_64.rpm...
`premium/des-packages/some-package-git-r0.core2_64.rpm` -> `/var/dasharo-package-manager/some-package-git-r0.core2_64.rpm`
mc: <ERROR> Access Denied.
Press Enter to continue. Do no mind |
Works, but there is problem that if you enter wrong credentials after you used correct ones then DTS extensions still uses correct ones while DPP tries to use new ones. |
This is not in the scope of this PR, you should consider adding issue. Good note btw. |
@m-iwanicki, if you think that these changes are OK - approve the related PR Dasharo/dts-scripts#58 so I can run tests on QEMU here. |
You should probably merge to develop and then develop to main (this would be the only new commit so nothing new would be added). |
Related PR: Dasharo/dts-scripts#58.