Skip to content
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

fix(tool): better error if public key is missing #382

Merged
merged 1 commit into from
Oct 16, 2024
Merged

fix(tool): better error if public key is missing #382

merged 1 commit into from
Oct 16, 2024

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Jul 25, 2024

Old:

building the system configuration...
Installing Lanzaboote to "/boot"...
Failed to install generation.: No such file or directory (os error 2)
Failed to install bootloader
warning: error(s) occurred while switching to the new configuration

New:

building the system configuration...
Installing Lanzaboote to "/boot"...
Failed to install generation 1: Get stub name: Read public key '/etc/secureboot/keys/db/db.pem': No such file or directory (os error 2)
Failed to install bootloader
warning: error(s) occurred while switching to the new configuration

@Mic92
Copy link
Member Author

Mic92 commented Jul 25, 2024

Turns out that switching to overlay mounts also wiped my lanzaboote key.

@Mic92 Mic92 changed the title fix(tool): log which generation couldn't be installed fix(tool): better error if public key is missing Jul 25, 2024
@Mic92 Mic92 force-pushed the logs branch 3 times, most recently from 16f5197 to 78a3551 Compare July 25, 2024 11:32
@blitz
Copy link
Member

blitz commented Jul 27, 2024

@Mic92 I love the error messages! Any idea what happened to the CI?

@Mic92
Copy link
Member Author

Mic92 commented Jul 27, 2024

@blitz we just upgraded our CI server in nix-community and looks like the database state was discarded. Hopefully nix-community now works more stable overall, so I can remove my own buildbot eventually.

@kuflierl
Copy link
Contributor

kuflierl commented Jul 31, 2024

Love the much clearer error message. I am also working on a similar problem with #384

Old:

building the system configuration...
Installing Lanzaboote to "/boot"...
Failed to install generation.: No such file or directory (os error 2)
Failed to install bootloader
warning: error(s) occurred while switching to the new configuration

New:

building the system configuration...
Installing Lanzaboote to "/boot"...
Failed to install generation 1: get stub name: read public key '/etc/secureboot/keys/db/db.pem': No such file or directory (os error 2)
Failed to install bootloader
warning: error(s) occurred while switching to the new configuration
@blitz blitz added this pull request to the merge queue Oct 16, 2024
Merged via the queue into master with commit 2fa1368 Oct 16, 2024
2 checks passed
@blitz blitz deleted the logs branch October 16, 2024 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants