-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor systemd unit installation #23
Conversation
While I don't object to the changes it would be nice to get a better description why these changes are needed. They also seem to change some inconsequential function names for no particular reason? |
Context: I'm trying to get TPM ssh keys working. Some (mainly spacing changes) are by auto-run gofmt and me reading the code. fix slog formatting is because slog doesn't use fmt (see https://pkg.go.dev/log/slog) For the other commit, I went looking why my user unit exec pointed to The systemd check was wrong: you can run systemd without the The function name changes are for readability, in most cases Any other changes here are pure refactor, iirc avoiding copy-pasta code in the install functions. |
f1338eb
to
7e3eeb8
Compare
This change fixed it probably; e1ecab3 |
aha, yep the problem was that I installed 0.1.0 with |
Ohh, I was not aware that |
@@ -24,7 +24,7 @@ install: $(BINS) | |||
@install -dm755 $(DESTDIR)$(LIBDIR)/systemd/system | |||
@install -dm755 $(DESTDIR)$(LIBDIR)/systemd/user | |||
@DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) bin/ssh-tpm-hostkeys --install-system-units | |||
@TEMPLATE_BINARY=1 DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) bin/ssh-tpm-agent --install-user-units --install-system | |||
@TEMPLATE_BINARY=/usr/bin/ssh-tpm-agent DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) bin/ssh-tpm-agent --install-user-units --install-system |
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.
@TEMPLATE_BINARY=/usr/bin/ssh-tpm-agent DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) bin/ssh-tpm-agent --install-user-units --install-system | |
@TEMPLATE_BINARY=$(BINDIR)/ssh-tpm-agent DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) bin/ssh-tpm-agent --install-user-units --install-system |
Generally for the future, it would be better to have the descriptions explaining "why" in the commits themselves, then we won't be at the mercy of github to contexualize the commits :) Other then that it's fine. I can amend the |
Merged with 7f5985f |
No description provided.