4 Commits

3 changed files with 20 additions and 2 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Dec 31 06:29:41 UTC 2025 - Gary Ching-Pang Lin <glin@suse.com>
- Add fde-tools.conf to create /var/log/fde with tmpfiles.d
(jsc#PED-14754)
-------------------------------------------------------------------
Thu Dec 4 10:58:50 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Build with distro flags
-------------------------------------------------------------------
Tue Jul 29 07:32:53 UTC 2025 - Gary Ching-Pang Lin <glin@suse.com>

1
fde-tools.conf Normal file
View File

@@ -0,0 +1 @@
d /var/log/fde 0750 root root -

View File

@@ -29,6 +29,7 @@ Group: System/Boot
URL: https://github.com/openSUSE/fde-tools
Source: https://github.com/openSUSE/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
Source1: fde-tools.service
Source2: fde-tools.conf
Patch0: fde-tools-firstboot-alp-snapshot.patch
Patch1: fde-tools-bsc1243877-firstboot-remove-key-conf.patch
Patch2: fde-tools-bsc1244323-firstboot-fix-lsinitrd.patch
@@ -91,8 +92,8 @@ update the signature in the sealed key.
%autosetup -p1
%build
%set_build_flags
%make_build \
CCFLAGS="%optflags" \
LIBDIR="%{_libdir}" \
LIBEXECDIR="%{_libexecdir}" \
SBINDIR="%{_sbindir}" \
@@ -101,6 +102,7 @@ update the signature in the sealed key.
RPM_MACRO_DIR="%{_rpmmacrodir}"
%install
%set_build_flags
%make_install \
LIBDIR="%{_libdir}" \
LIBEXECDIR="%{_libexecdir}" \
@@ -115,12 +117,16 @@ mv %{buildroot}/etc/sysconfig/fde-tools %{buildroot}%{_fillupdir}/sysconfig.fde-
mkdir -p %{buildroot}%{_unitdir}
cp %{S:1} %{buildroot}%{_unitdir}/fde-tpm-enroll.service
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{S:2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
%pre
%service_add_pre fde-tpm-enroll.service
%post
%service_add_post fde-tpm-enroll.service
%fillup_and_insserv
%tmpfiles_create %{name}.conf
%preun
%service_del_preun fde-tpm-enroll.service
@@ -139,7 +145,7 @@ cp %{S:1} %{buildroot}%{_unitdir}/fde-tpm-enroll.service
%{_mandir}/man8/fdectl.8.gz
%dir %{_libdir}/cryptsetup/
%{_libdir}/cryptsetup/libcryptsetup-token-*.so
%dir %attr(750,root,root) %{_var}/log/fde
%{_tmpfilesdir}/%{name}.conf
%files bash-completion
%{_datadir}/bash-completion/completions/fdectl