-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add service to kill k3s before umount #638
Conversation
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.
Looks good, but note this is not enough. The spec file should be adapted so the elemental package also includes the new unit file.
OBS: elemental - 15.4 test should pass and the resulting RPM should include the new unit file. Take a look into elemental-toolkit specfile if want to see how to include unit files according to common SUSE practices
Nice catch! I always forget the OBS workflow 😅 |
6e775f7
to
574ba5e
Compare
@davidcassany hopefully looks better now 👍 |
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
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.
Looks good, just a small detail, to be consistent with other packaged unit files.
I would add the following in %pre
, we can do it in a follow up PR:
%service_add_pre shutdown-k3s.service
And analog lines for %post
, %preun
and %postun
sections. See how it is done for the elemental-populated-node-labels.service
. I doubt this makes any difference in our case as we do not expect install this RPM in a running system, but still, to follow best practices.
Good call, I opened #652 for this |
Seems to be hitting this issue: k3s-io/k3s#2400
The workaround suggested is to add a service that runs k3s-killall before umount.
Fixes #587
Signed-off-by: Fredrik Lönnegren fredrik.lonnegren@suse.com