diff --git a/containment-tik-img-to-rpm.changes b/containment-tik-img-to-rpm.changes index 761c00b..b26315e 100644 --- a/containment-tik-img-to-rpm.changes +++ b/containment-tik-img-to-rpm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 2 14:02:02 UTC 2024 - Richard Brown + +- Package uncompressed images, to be used with systemd-repart + ------------------------------------------------------------------- Thu Jun 20 15:13:08 UTC 2024 - Richard Brown diff --git a/image.spec.in b/image.spec.in index d1b46c2..4d90a5b 100644 --- a/image.spec.in +++ b/image.spec.in @@ -15,18 +15,19 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build This package contains the __OS_NAME__ image for tik. %prep +xz -k -d %{SOURCE0} %build %install install -d -m 644 $RPM_BUILD_ROOT%{_prefix}/lib/tik/img -install -p -D -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{_prefix}/lib/tik/img/%{name}.%{version}.raw.xz +install -p -D -m 644 %{_sourcedir}/%(basename %{SOURCE0} .xz) $RPM_BUILD_ROOT%{_prefix}/lib/tik/img/%{name}.%{version}.raw %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) -%{_prefix}/lib/tik/img/%{name}.%{version}.raw.xz +%{_prefix}/lib/tik/img/%{name}.%{version}.raw %changelog