SHA256
1
0
forked from pool/supermin

Accepting request 869861 from Virtualization

OBS-URL: https://build.opensuse.org/request/show/869861
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/supermin?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2021-02-07 14:21:45 +00:00 committed by Git OBS Bridge
commit b736620ab3
3 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,19 @@
--- supermin-5.2.0/src/format_ext2_kernel.ml 2021/02/05 16:10:36 1.1
+++ supermin-5.2.0/src/format_ext2_kernel.ml 2021/02/05 16:12:46
@@ -212,6 +212,16 @@
| None ->
(* Try to work it out from the filename instead. *)
let basename = Filename.basename kernel_file in
+ let basename =
+ let len = String.length basename in
+ if Filename.check_suffix basename ".xz" || Filename.check_suffix basename ".gz"
+ then (
+ let basename = String.sub basename 0 (len-3) in
+ basename
+ )
+ else (
+ basename
+ ) in
if string_prefix "vmlinuz-" basename || string_prefix "vmlinux-" basename
then (
let version = String.sub basename 8 (String.length basename - 8) in

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Feb 5 16:59:34 CET 2021 - ro@suse.de
- add patch supermin-kernel_version_compressed.patch
find kernel module path even for compressed kernels
like on aarch64 and s390x
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 23 18:45:45 UTC 2020 - Dirk Mueller <dmueller@suse.com> Fri Oct 23 18:45:45 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package supermin # spec file for package supermin
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -28,6 +28,7 @@ Source1: https://download.libguestfs.org/supermin/5.2-stable/supermin-5.2
Source9: supermin.keyring Source9: supermin.keyring
# Pending upstream review # Pending upstream review
Patch0: suse_release.patch Patch0: suse_release.patch
Patch1: supermin-kernel_version_compressed.patch
BuildRequires: augeas BuildRequires: augeas
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake