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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update install script with option to skip reload #3248
Conversation
Is the issue that systemd isn't installed yet when building the image? In the K3s installer we wrap things in a check to see if https://github.com/k3s-io/k3s/blob/master/install.sh#L694-L698 |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit; makes sense otherwise
Add a new envvar INSTALL_RKE2_SKIP_RELOAD that skips the systemctl daemon-reload call. This is useful when using the install script to build images that contain rke2 but init has not run yet.
2c2cc00
to
51ce86b
Compare
@brandond Can you run the workflows? |
Codecov Report
@@ Coverage Diff @@
## master #3248 +/- ##
==========================================
- Coverage 18.96% 18.88% -0.08%
==========================================
Files 25 25
Lines 2289 2287 -2
==========================================
- Hits 434 432 -2
Misses 1817 1817
Partials 38 38
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@dramich can I get some assistance on how to test this? I tried installing rke2 on fresh node by running
CC: @brandond |
Proposed Changes
Add a new envvar INSTALL_RKE2_SKIP_RELOAD that skips the systemctl
daemon-reload call. This is useful when using the install script
to build images that contain rke2 but init has not run yet.
Types of Changes
Enhancement
Verification
Run the script with and without the new flag set. On a fresh box systemctl won't see the rke2 services until after the reload is called, so running the script with and without the flag should show the difference. Or run in a container before init is called and watch systemctl bomb 馃槃
Linked Issues
#3247