Compare commits

...

10 Commits

Author SHA256 Message Date
8da0bbb492 - source date epoch
OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=15
2025-03-05 11:49:11 +00:00
4782ffecd5 OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=14 2023-03-09 17:39:57 +00:00
c39f6f4cbc OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=13 2023-03-09 17:38:29 +00:00
b116e22a0f OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=12 2023-03-09 17:35:22 +00:00
ee96b9b097 OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=11 2023-03-09 17:31:51 +00:00
3cbb9d1d37 OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=10 2023-03-01 10:09:28 +00:00
10299af57f OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=9 2023-03-01 10:07:44 +00:00
b5f40fde97 OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=8 2021-10-25 11:30:12 +00:00
21cf771975 OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=7 2021-10-25 10:58:06 +00:00
fe28a67e91 OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/boottest-ramdisk?expand=0&rev=6 2021-10-25 10:55:52 +00:00
2 changed files with 32 additions and 6 deletions

4
boottest-ramdisk.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Mar 5 11:48:44 UTC 2025 - Michal Suchanek <msuchanek@suse.de>
- source date epoch

View File

@@ -14,26 +14,44 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?sles_version} == 9
%define os_ver 9
%endif
%if 0%{?sles_version} == 10
%define os_ver 10
%endif
%if 0%{?sles_version} == 11
%define os_ver 11
%endif
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
%define os_ver 12
%endif
%if 0%{?sle_version} >= 150000 && 0%{?sle_version} < 160000
%define os_ver 15
%endif
%if 0%{?suse_version} > 1500
%define os_ver 16
%endif
%global os_ver %(set -x ;
ver="$(cat /etc/os-release | grep VERSION=)"
ver="$(echo "$ver" | cut -d= -f2)"
ver="$(echo "$ver" | tr -d '"')"
ver="$(echo "$ver" | cut -d. -f 1)"
echo $ver )
#!BuildIgnore: python3
Name: boottest-ramdisk
Version: 0
Release: 0
Summary: Ramdisk for kernel boot test
Group: Development/Tools
License: GPL-2.0
BuildRequires: kernel-source
BuildRequires: distribution-release
%ifarch x86_64
BuildRequires: xen
%endif
%description
%package %os_ver
Summary: Ramdisk for kernel boot test
Group: Development/Tools
%description %os_ver
@@ -107,7 +125,11 @@ gcc -Wall -o gen_init_cpio /usr/src/linux/usr/gen_init_cpio.c
cp $temp/cpio initramfs-%os_ver
%install
install -d %{buildroot}/usr/share/%name
install -D -m 644 -t %{buildroot}/usr/share/%name initramfs-%os_ver
%ifarch x86_64
install -D -m 644 /boot/xen.gz %{buildroot}/usr/share/%name/xen-%os_ver
%endif
%post
%postun