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

Added a --skip-ntp parameter to deal with #2144 #2225

Merged
merged 4 commits into from Nov 22, 2023
Merged

Added a --skip-ntp parameter to deal with #2144 #2225

merged 4 commits into from Nov 22, 2023

Conversation

Torxed
Copy link
Member

@Torxed Torxed commented Nov 21, 2023

This fix issue:

PR Description:

Since certain network environments prohibit the default NTP, we might end up in a loop waiting for NTP to happen. Usually this can be resolved while the loop is "hanging", but no information is given about it.

This PR adds both a warn() call notifying the user about the potential issue after 5 seconds, but also a flag to --skip-ntp which disables the check all together. This can be useful in environments where NTP is not available and time is instead synced manually.

Copy link
Contributor

@alan-barzilay alan-barzilay left a comment

Choose a reason for hiding this comment

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

thank you for the quick response as always! I made some comments, hope they help :)

archinstall/lib/installer.py Outdated Show resolved Hide resolved
while True:
if not _notified and time.time() - _started_wait > 5:
_notified = True
warn("Time syncronization not completing, while you wait - check the docs for workarounds: https://archinstall.readthedocs.io/")
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add something like "(...) completing ,this could me an issue with your network/ntp/environment permissions, while you wait (...)" and also maybe link directly to the relevant section instead of the whole doc?

archinstall/lib/installer.py Outdated Show resolved Hide resolved
@Torxed Torxed merged commit 2437e90 into master Nov 22, 2023
13 checks passed
@Torxed Torxed deleted the skip-ntp branch November 22, 2023 21:52
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.

None yet

2 participants