-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
oem-factory-reset failing during gpg factory-reset #764
Comments
I was thinking the same - yet, I know it did work :D
please try going into recovery shell and type |
yes, see my edit :)
will have to try reverting that to isolate, then can diagnose |
@alex-nitrokey : I would prefer having mount-usb from preceded with a prompt prior of exporting the keys and keep factory-reset outputing normally to /media if not already mounted. I will merge my changes to that script in subsequent PR for the reownership wizard to work with upstreamed code, and to me it doesn't really make sense to have a factory reset without exporting the public key. |
This was intended for #766 , wasn't it? It is just a suggestion. In our experience many people do not care about the GnuPG keys and just want the boot measurement, thus having a pubkey is not always needed or even confusing and the factory-reset aborts if you do not put in an usb drive... But I totally see that this might be controversial. I just wanted to suggest the change at least as we have implemented for NitroPad. PS: do not be confused, I am logged in with another account (thus, not alex-nitrokey). |
confirmed, reverting 972c25d [upgrade gpg toolstack to latest versions] fixes the issue |
Which means the following line is at fault since gpg modified something: |
Yes, it appears to me that this is right. |
So this might be linked with TTYs being foo-bar since moved to musl-cross-make. ( #665 ) and the fix having tty hardcoded |
@alex-nitrokey I don't get that part though |
As far as I remember, all the output of GnuPG was suppressed back then when it still worked. If you open the script via recovery shell, you see all the output of GnuPG while the process is still automated. Therefore, I guess it is something in the way we are handling the GnuPG output, but I could not see what is going wrong there yet. |
will be resolved by #777 |
…resolving linuxboot#764(unattended input fails at factory reset script)
The oem-factory-reset is failing for me if started directly after starting the device (e.g. after flashing), but is working fine if you call
oem-factory-reset
out of the recovery shell.Did anybody experience this as well? I couldn't see the reason yet. It seems to fail at this position.
The text was updated successfully, but these errors were encountered: