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

codecs: attempt install on first boot if install fails #1795

Closed

Conversation

ogayot
Copy link
Member

@ogayot ogayot commented Sep 14, 2023

Instead of giving up installing ubuntu-drivers-addons if we are not online (or if another error occurs), we now fall back to asking cloud-init to install the package on first boot.

If we were doing an offline install, it is highly likely that cloud-init will also fail to install the package on first boot. Furthermore, it will only try to install it once before disabling itself.

So, this change would only be beneficial in scenarios where a temporary network failure is encountered.

Instead of giving up installing ubuntu-drivers-addons if we are not
online (or if another error occurs), we now fall back to asking
cloud-init to install the package on first boot.

Signed-off-by: Olivier Gayot <[email protected]>
@ogayot ogayot force-pushed the install-package-failover-cloud-init branch from 52ffcde to 4df7e0e Compare September 14, 2023 12:42
Copy link
Collaborator

@dbungert dbungert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. This is marked draft - what needs to happen next to land this?

@ogayot
Copy link
Member Author

ogayot commented Sep 22, 2023

This looks good. This is marked draft - what needs to happen next to land this?

Sadly, I have yet to witness a scenario where it really helps in practice - so I don't think we should merge for mantic. Maybe we should apply this to other packages as well - and somehow have a way to inform the users that said packages are going to be installed on first boot. Errors on first boot look pretty bad too ..

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.

2 participants