#2 WIP: dracut: add Afterburn dracut modules
Closed 4 years ago by yzhang. Opened 4 years ago by yzhang.
rpms/ yzhang/rust-afterburn add-dracut  into  master

file modified
+8
@@ -2,6 +2,7 @@ 

  %bcond_without check

  

  %global crate afterburn

+ %global dracutlibdir %{_prefix}/lib/dracut

  

  Name:           rust-%{crate}

  Version:        4.1.0
@@ -53,6 +54,9 @@ 

  %endif

  BuildRequires:  systemd

  

+ Requires:       dracut

+ Requires:       dracut-network

+ 

  %global _description \

  A simple cloud provider agent.

  
@@ -72,6 +76,7 @@ 

  %{_unitdir}/afterburn-checkin.service

  %{_unitdir}/afterburn-firstboot-checkin.service

  %{_unitdir}/afterburn-sshkeys@.service

+ %{dracutlibdir}/modules.d/30afterburn

  

  %post        -n %{crate}

  %systemd_post afterburn.service
@@ -109,6 +114,9 @@ 

  %{__install} -Dpm0644 -t %{buildroot}%{_unitdir} \

    systemd/*.service

  

+ install -d -p %{buildroot}/%{dracutlibdir}/modules.d

+ cp -r dracut/* %{buildroot}/%{dracutlibdir}/modules.d/

+ 

  %if %{with check}

  %check

  %cargo_test

Update specfile to include dracut files and install them to the
correct location.

This is just a POC on how to pull in the files. Depends: https://github.com/coreos/afterburn/pull/224

Whoops, for some reason it opened twice, closing duplicate

Pull-Request has been closed by yzhang

4 years ago
Metadata