Add tmpfiles configs for image mode
Resolves: RHEL-182171
This commit is contained in:
parent
151c59383a
commit
f84a6011da
1
freeipmi-ipmiseld.tmpfiles.conf
Normal file
1
freeipmi-ipmiseld.tmpfiles.conf
Normal file
@ -0,0 +1 @@
|
||||
d /var/cache/ipmiseld 0755 root root -
|
||||
@ -8,6 +8,8 @@ Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
||||
Source1: bmc-watchdog.service
|
||||
Source2: ipmidetectd.service
|
||||
Source3: ipmiseld.service
|
||||
Source4: freeipmi.tmpfiles.conf
|
||||
Source5: freeipmi-ipmiseld.tmpfiles.conf
|
||||
BuildRequires: libgcrypt-devel texinfo systemd
|
||||
%{?systemd_requires}
|
||||
BuildRequires: gcc
|
||||
@ -73,6 +75,10 @@ find %{buildroot} -name '*.la' -delete -print
|
||||
install -m755 -d %{buildroot}%{_unitdir}
|
||||
install -pm644 %SOURCE1 %SOURCE2 %SOURCE3 %{buildroot}%{_unitdir}/
|
||||
|
||||
# Install tmpfiles configs
|
||||
install -m0644 -D %{SOURCE4} %{buildroot}%{_tmpfilesdir}/freeipmi.conf
|
||||
install -m0644 -D %{SOURCE5} %{buildroot}%{_tmpfilesdir}/freeipmi-ipmiseld.conf
|
||||
|
||||
# Remove initscripts
|
||||
rm -frv %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/init.d
|
||||
|
||||
@ -258,6 +264,7 @@ rm -frv %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/init.d
|
||||
%{_mandir}/man5/libipmiconsole.conf.5*
|
||||
%{_mandir}/man7/freeipmi.7*
|
||||
%dir %{_localstatedir}/cache/ipmimonitoringsdrcache
|
||||
%{_tmpfilesdir}/freeipmi.conf
|
||||
|
||||
%files devel
|
||||
%dir %{_datadir}/doc/%{name}/contrib/libipmimonitoring
|
||||
@ -341,6 +348,7 @@ rm -frv %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/init.d
|
||||
%{_mandir}/man5/ipmiseld.conf.5*
|
||||
%{_mandir}/man8/ipmiseld.8*
|
||||
%dir %{_localstatedir}/cache/ipmiseld
|
||||
%{_tmpfilesdir}/freeipmi-ipmiseld.conf
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
||||
3
freeipmi.tmpfiles.conf
Normal file
3
freeipmi.tmpfiles.conf
Normal file
@ -0,0 +1,3 @@
|
||||
d /var/lib/freeipmi 0755 root root -
|
||||
f /var/lib/freeipmi/ipckey 0644 root root - freeipmi\n
|
||||
d /var/cache/ipmimonitoringsdrcache 0755 root root -
|
||||
Loading…
Reference in New Issue
Block a user