-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #551 Get hints by #551 (comment) Basically we detect if we're running in systemd; if we're not, we re-exec ourselves via systemd-run. Then we can just directly run code in what is now the daemon. I think an important aspect of this is that we retain something like `--unit bootupd` which acts as a lock - only one unit with that name can run at a time to avoid two concurrent invocations breaking things.
- Loading branch information
1 parent
a7a451e
commit 8269c57
Showing
12 changed files
with
66 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,15 +52,6 @@ cargo build --release | |
%make_install INSTALL="install -p -c" | ||
make install-grub-static DESTDIR=%{?buildroot} INSTALL="%{__install} -p" | ||
|
||
%post -n %{crate} | ||
%systemd_post bootupd.service bootupd.socket | ||
|
||
%preun -n %{crate} | ||
%systemd_preun bootupd.service bootupd.socket | ||
|
||
%postun -n %{crate} | ||
%systemd_postun bootupd.service bootupd.socket | ||
|
||
%changelog | ||
* Tue Oct 18 2022 Colin Walters <[email protected]> - 0.2.8-3 | ||
- Dummy changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.