-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #803 from travier/main-bootupd-update-service
packaging: Add systemd unit to trigger updates on boot
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Update bootloader on boot | ||
Documentation=https://github.com/coreos/bootupd | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/bin/bootupctl update | ||
RemainAfterExit=yes | ||
MountFlags=slave | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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 |
---|---|---|
|
@@ -24,6 +24,7 @@ BuildRequires: cargo | |
BuildRequires: git | ||
BuildRequires: openssl-devel | ||
BuildRequires: systemd-devel | ||
BuildRequires: systemd-rpm-macros | ||
|
||
%description | ||
%{summary} | ||
|
@@ -34,6 +35,7 @@ BuildRequires: systemd-devel | |
%{_bindir}/bootupctl | ||
%{_libexecdir}/bootupd | ||
%{_prefix}/lib/bootupd/grub2-static/ | ||
%{_unitdir}/bootloader-update.service | ||
|
||
%prep | ||
%autosetup -n %{crate}-%{version} -p1 -Sgit | ||
|
@@ -53,7 +55,8 @@ cargo build --release | |
%install | ||
%make_install INSTALL="install -p -c" | ||
make install-grub-static DESTDIR=%{?buildroot} INSTALL="%{__install} -p" | ||
make install-systemd-unit DESTDIR=%{?buildroot} INSTALL="%{__install} -p" | ||
|
||
%changelog | ||
* Tue Oct 18 2022 Colin Walters <[email protected]> - 0.2.8-3 | ||
- Dummy changelog | ||
- Dummy changelog |