forked from pool/afterburn
- Add dracut modules for afterburn
OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/afterburn?expand=0&rev=7
This commit is contained in:
parent
15f0896416
commit
ad2583b87a
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 10 13:49:48 UTC 2021 - Sayali Lunkad <sayali.lunkad@suse.com>
|
||||
|
||||
- Add dracut modules for afterburn
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 26 15:18:35 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#
|
||||
# spec file for package afterburn
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
@ -14,7 +15,11 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
|
||||
|
||||
%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d')
|
||||
|
||||
Name: afterburn
|
||||
Version: 5.0.0
|
||||
Release: 0
|
||||
@ -28,12 +33,23 @@ Source2: cargo_config
|
||||
ExcludeArch: %ix86 s390x ppc64le armhfp armv7hl
|
||||
|
||||
BuildRequires: cargo
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
BuildRequires: rust >= 1.44.0
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
|
||||
%description
|
||||
Afterburn is a one-shot agent for cloud-like platforms which interacts with provider-specific metadata endpoints.
|
||||
|
||||
%package dracut
|
||||
Summary: Dracut modules for afterburn
|
||||
BuildRequires: pkgconfig(dracut)
|
||||
Requires: %{name}%{?_isa} = %{?epoch:}%{version}-%{release}
|
||||
Requires: dracut
|
||||
Requires: dracut-network
|
||||
|
||||
%description dracut
|
||||
Dracut module that enables afterburn and corresponding services
|
||||
to run in the initramfs on boot.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -a1
|
||||
mkdir .cargo
|
||||
@ -56,6 +72,8 @@ install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-firstboot-checki
|
||||
sed -e 's,@DEFAULT_INSTANCE@,'core',' < systemd/%{name}-sshkeys@.service.in > systemd/%{name}-sshkeys@.service.tmp
|
||||
mv systemd/%{name}-sshkeys@.service.tmp systemd/%{name}-sshkeys@.service
|
||||
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-sshkeys@.service %{buildroot}%{_unitdir}/%{name}-sshkeys@.service
|
||||
mkdir -p %{buildroot}%{dracutmodulesdir}
|
||||
cp -a dracut/* %{buildroot}%{dracutmodulesdir}
|
||||
|
||||
%pre
|
||||
%service_add_pre %{name}.service %{name}-checkin.service %{name}-firstboot-checkin.service %{name}-sshkeys@.service
|
||||
@ -78,4 +96,7 @@ install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-sshkeys@.service
|
||||
%{_unitdir}/afterburn-firstboot-checkin.service
|
||||
%{_unitdir}/afterburn-sshkeys@.service
|
||||
|
||||
%files dracut
|
||||
%{dracutmodulesdir}/30afterburn/
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user