Hello community,
here is the log from the commit of package katacontainers-image-initrd for
openSUSE:Factory checked in at 2019-08-22 10:52:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/katacontainers-image-initrd (Old)
and /work/SRC/openSUSE:Factory/.katacontainers-image-initrd.new.22127
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "katacontainers-image-initrd"
Thu Aug 22 10:52:38 2019 rev:3 rq:724844 version:1.9.0~alpha0
Changes:
--------
---
/work/SRC/openSUSE:Factory/katacontainers-image-initrd/katacontainers-image-initrd.changes
2019-08-09 16:52:34.289480384 +0200
+++
/work/SRC/openSUSE:Factory/.katacontainers-image-initrd.new.22127/katacontainers-image-initrd.changes
2019-08-22 10:52:41.281697344 +0200
@@ -1,0 +2,5 @@
+Thu Aug 8 14:31:08 UTC 2019 - Marco Vedovati <[email protected]>
+
+- Have this package directly depend on kernel-kvmsmall.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ katacontainers-image-initrd.spec ++++++
--- /var/tmp/diff_new_pack.s2noaF/_old 2019-08-22 10:52:42.845697135 +0200
+++ /var/tmp/diff_new_pack.s2noaF/_new 2019-08-22 10:52:42.889697128 +0200
@@ -34,6 +34,7 @@
BuildRequires: fdupes
BuildRequires: kernel-%{kernel_flavor}
BuildRequires: golang(API) = 1.11
+Requires: kernel-%{kernel_flavor} = %(rpm -q --queryformat
'[%%{VERSION}-%%{RELEASE}]' kernel-%{kernel_flavor})
Provides: katacontainers-image
%description
@@ -69,6 +70,17 @@
%fdupes %{buildroot}/%{_prefix}
+%post
+# Set config to use a matching kernel and initrd version. This is done in
%post,
+# so that it is using whatever versions the user has installed on its system.
+kversion=$(readlink
"%{_datarootdir}/kata-containers/kata-containers-initrd.img" | sed -E -e
"s,^.*kata-containers-initrd-(.+).img,\1,")
+[ -n "${kversion}" ] || { echo "Failed to detect the initrd kernel version";
exit -1; }
+ln -sf "/boot/vmlinuz-${kversion}" "%{_datarootdir}/kata-containers/vmlinuz"
+
+%postun
+# Remove the vmlinuz link create in %post
+rm -f "%{_datarootdir}/kata-containers/vmlinuz"
+
%files
%defattr(-,root,root,-)
%dir %{_datarootdir}/kata-containers