-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
[misc] Support rpm-ostree based distros in installation script #2508
Conversation
ea6ae68
to
a512e82
Compare
I am not sure I understand how this will fix #1634. |
postinst fails on
Recent commits of service module correctly return plus, I added rpm-ostree support to install script in order to leverage the rpm packages and repo instead of binary archive. As binary archive the executable should be copied under /usr/local/bin (or /var/localbin as mapped on these distros) that is the only PATH folder available in rw. I opted for rpm-ostree support (binary under /usr/bin cause installation is handled by a privileged process) |
Why was it not a universal problem? On Silverblue, I could still install until I tried to install packages How can I get a rpm to locally install and test this? |
need to generate an rpm with goreleaser, check the documentation |
@M0Rf30 we are using a forked version of github.com/kardianos/service; see Line 208 in 92a0092
Can you make this PR only about adding rpm-ostree, or is the module update a requirement for it? if so, we will update the fork and update the module in a separate PR first. |
From my understanding the module update is what this Pull Request is actually for to fix: #1634. I believe the author decided to also update the install script in addition as it was missing. The problem is that on Fedora Atomic-Based Operating Systems, It seems some updates were made to the kardiano/service which included fixes that solve the issue relating to the issue of layering on these Systems. So if something is to be removed from this pull it should be the update to the install script. |
I see, in this case it is better for us to upgrade the fork and update the go.mod and go.sum. I will prepare the PR in a few hours |
Already done here in the same time I've opened this After the service PR merge I expect only a bump of |
@M0Rf30 The service PR is already merged can you bump the version in go.mod? |
a512e82
to
3127656
Compare
Done |
|
Describe your changes
This add
rpm-ostree
binary detection in installation script and updatekardianos/service
module to lastest commits. It should close #1634Latest commits of
kardianos/service
correctly detect and discriminate between/etc
folders (init.d, systemd/system....)