From 9d34afb3588b09f995c7fac3910b4bc8c5739c146a42f4420689c99c42d2807c Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Wed, 15 Apr 2020 13:47:08 +0000 Subject: [PATCH] - Add bootloader pattern. Useful for appliances to not repeat the logic in kiwi files. OBS-URL: https://build.opensuse.org/package/show/system:install:head/patterns-base?expand=0&rev=128 --- patterns-base.changes | 6 ++++++ patterns-base.spec | 44 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/patterns-base.changes b/patterns-base.changes index 14808e0..b448029 100644 --- a/patterns-base.changes +++ b/patterns-base.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 15 13:46:01 UTC 2020 - Ludwig Nussel + +- Add bootloader pattern. Useful for appliances to not repeat the logic + in kiwi files. + ------------------------------------------------------------------- Thu Mar 5 10:50:15 UTC 2020 - Malte Kraus diff --git a/patterns-base.spec b/patterns-base.spec index e3f8d38..e585212 100644 --- a/patterns-base.spec +++ b/patterns-base.spec @@ -609,6 +609,46 @@ This is the minimal SLE runtime system. It is really a minimal system, you can l ################################################################################ +%package bootloader +%pattern_basetechnologies +Summary: Bootloader +Group: Metapackages +Provides: pattern() = bootloader +Requires: pattern() = base +# +Requires: grub2 +%ifarch x86_64 +# XXX: not sure this really belongs here. More like a kernel +# rather than bootloader related thing? +Requires: biosdevname +%endif +%ifnarch s390x +Requires: (grub2-branding-openSUSE if branding-openSUSE) +%endif +%ifarch x86_64 +Requires: grub2-x86_64-efi +%endif +%ifarch aarch64 +Requires: grub2-arm64-efi +%endif +%ifarch armv7l armv7hl +Requires: grub2-arm-efi +Requires: grub2-arm-uboot +%endif +%ifarch x86_64 +Requires: mokutil +Requires: shim +%endif + +%description bootloader +This pattern holds files required for booting the system + +%files bootloader +%dir %{_docdir}/patterns +%{_docdir}/patterns/bootloader.txt + +################################################################################ + %package sw_management %pattern_basetechnologies Summary: Software Management @@ -966,12 +1006,12 @@ done # These packages don't generate a 32bit pattern for i in \ %if 0%{?is_opensuse} -basesystem basic_desktop console documentation transactional_base update_test \ +basesystem bootloader basic_desktop console documentation transactional_base update_test \ %else %ifnarch s390 s390x 32bit \ %endif -basesystem basic_desktop documentation \ +basesystem bootloader basic_desktop documentation \ %endif %ifarch armv6hl armv7hl aarch64 x11_raspberrypi \