2010-02-18 15:10:48 +01:00
|
|
|
#
|
2011-05-09 10:48:37 +02:00
|
|
|
# spec file for package grub2
|
2010-02-18 15:10:48 +01:00
|
|
|
#
|
2020-04-22 20:42:32 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2010-02-18 15:10:48 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-02-06 15:44:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-02-18 15:10:48 +01:00
|
|
|
#
|
2013-02-07 14:16:19 +01:00
|
|
|
# needssslcertforbuild
|
2012-03-22 12:32:34 +01:00
|
|
|
|
2016-11-03 11:12:13 +01:00
|
|
|
|
2019-02-06 15:44:34 +01:00
|
|
|
%define _binaries_in_noarch_package_terminate_build 0
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
Name: grub2
|
2011-08-02 16:45:10 +02:00
|
|
|
%ifarch x86_64 ppc64
|
2011-12-25 17:34:30 +01:00
|
|
|
BuildRequires: gcc-32bit
|
|
|
|
BuildRequires: glibc-32bit
|
|
|
|
BuildRequires: glibc-devel-32bit
|
2014-08-13 04:36:26 +02:00
|
|
|
%else
|
2011-12-25 17:34:30 +01:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
2015-02-16 08:43:46 +01:00
|
|
|
%endif
|
2011-12-25 17:34:30 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: device-mapper-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
2012-11-13 09:53:25 +01:00
|
|
|
BuildRequires: freetype2-devel
|
2012-06-29 06:59:42 +02:00
|
|
|
BuildRequires: fuse-devel
|
2012-11-13 09:53:25 +01:00
|
|
|
%if 0%{?suse_version} >= 1140
|
2019-02-06 15:44:34 +01:00
|
|
|
BuildRequires: dejavu-fonts
|
2012-03-22 12:32:34 +01:00
|
|
|
BuildRequires: gnu-unifont
|
2012-11-13 09:53:25 +01:00
|
|
|
%endif
|
2013-04-20 17:42:26 +02:00
|
|
|
BuildRequires: help2man
|
2012-11-13 09:53:25 +01:00
|
|
|
BuildRequires: xz
|
|
|
|
%if 0%{?suse_version} >= 1210
|
2012-07-23 10:00:52 +02:00
|
|
|
BuildRequires: makeinfo
|
2012-11-13 09:53:25 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: texinfo
|
|
|
|
%endif
|
2019-02-06 15:44:34 +01:00
|
|
|
%if %{defined pythons}
|
|
|
|
BuildRequires: %{pythons}
|
|
|
|
%else
|
|
|
|
BuildRequires: python
|
|
|
|
%endif
|
2012-06-29 06:59:42 +02:00
|
|
|
BuildRequires: xz-devel
|
2018-12-27 00:21:53 +01:00
|
|
|
%ifarch x86_64 aarch64
|
2013-03-05 16:31:13 +01:00
|
|
|
%if 0%{?suse_version} >= 1230 || 0%{?suse_version} == 1110
|
2013-04-02 11:49:38 +02:00
|
|
|
BuildRequires: openssl >= 0.9.8
|
2013-04-05 07:44:11 +02:00
|
|
|
BuildRequires: pesign-obs-integration
|
2013-02-07 14:16:19 +01:00
|
|
|
%endif
|
2015-02-20 13:50:50 +01:00
|
|
|
%endif
|
2015-04-21 10:50:51 +02:00
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
# Package systemd services files grub2-once.service
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%define has_systemd 1
|
|
|
|
%endif
|
2017-01-19 10:38:17 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: update-bootloader-rpm-macros
|
|
|
|
%endif
|
2010-03-15 00:45:00 +01:00
|
|
|
|
2013-02-21 15:32:16 +01:00
|
|
|
# Modules code is dynamically loaded and collected from a _fixed_ path.
|
2010-02-18 15:10:48 +01:00
|
|
|
%define _libdir %{_exec_prefix}/lib
|
2010-03-15 00:45:00 +01:00
|
|
|
|
2017-02-24 02:43:15 +01:00
|
|
|
# Build grub2-emu everywhere (it may be "required" by 'grub2-once')
|
|
|
|
%define emu 1
|
|
|
|
|
2014-02-06 09:17:06 +01:00
|
|
|
%ifarch ppc ppc64 ppc64le
|
2012-11-28 10:34:03 +01:00
|
|
|
%define grubcpu powerpc
|
2011-08-02 16:45:10 +02:00
|
|
|
%define platform ieee1275
|
2017-02-24 02:43:15 +01:00
|
|
|
# emu does not build here yet... :-(
|
|
|
|
%define emu 0
|
2011-08-02 16:45:10 +02:00
|
|
|
%endif
|
2012-10-26 17:06:09 +02:00
|
|
|
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%define grubcpu i386
|
2012-11-28 10:34:03 +01:00
|
|
|
%define platform pc
|
2012-10-26 17:06:09 +02:00
|
|
|
%endif
|
|
|
|
|
2014-01-30 11:23:54 +01:00
|
|
|
%ifarch s390x
|
|
|
|
%define grubcpu s390x
|
|
|
|
%define platform emu
|
|
|
|
%endif
|
|
|
|
|
2014-12-05 21:03:44 +01:00
|
|
|
%ifarch %{arm}
|
|
|
|
%define grubcpu arm
|
|
|
|
%define platform uboot
|
|
|
|
%endif
|
|
|
|
|
2017-02-24 02:43:15 +01:00
|
|
|
%ifarch aarch64
|
|
|
|
%define grubcpu arm64
|
|
|
|
%define platform efi
|
|
|
|
%define only_efi 1
|
|
|
|
%endif
|
|
|
|
|
2019-11-03 11:24:40 +01:00
|
|
|
%ifarch riscv64
|
|
|
|
%define grubcpu riscv64
|
|
|
|
%define platform efi
|
|
|
|
%define only_efi 1
|
|
|
|
%endif
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%define grubarch %{grubcpu}-%{platform}
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
# build efi bootloader on some platforms only:
|
2014-11-12 00:20:51 +01:00
|
|
|
%if ! 0%{?efi:1}
|
2019-11-03 11:24:40 +01:00
|
|
|
%global efi %{ix86} x86_64 ia64 aarch64 %{arm} riscv64
|
2014-08-13 17:07:57 +02:00
|
|
|
%endif
|
2011-08-26 10:01:42 +02:00
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%ifarch %{efi}
|
|
|
|
%ifarch %{ix86}
|
|
|
|
%define grubefiarch i386-efi
|
|
|
|
%else
|
2014-08-13 17:07:57 +02:00
|
|
|
%ifarch aarch64
|
|
|
|
%define grubefiarch arm64-efi
|
|
|
|
%else
|
2014-12-05 21:03:44 +01:00
|
|
|
%ifarch %{arm}
|
|
|
|
%define grubefiarch arm-efi
|
|
|
|
%else
|
2012-11-28 10:34:03 +01:00
|
|
|
%define grubefiarch %{_target_cpu}-efi
|
|
|
|
%endif
|
|
|
|
%endif
|
2014-08-13 17:07:57 +02:00
|
|
|
%endif
|
2014-12-05 21:03:44 +01:00
|
|
|
%endif
|
2012-11-28 10:34:03 +01:00
|
|
|
|
2015-02-20 13:50:50 +01:00
|
|
|
%ifarch %{ix86}
|
|
|
|
%define grubxenarch i386-xen
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
%define grubxenarch x86_64-xen
|
|
|
|
%endif
|
|
|
|
|
2017-02-24 02:43:15 +01:00
|
|
|
%if %{platform} == emu
|
2019-02-06 15:44:34 +01:00
|
|
|
# force %%{emu} to 1, e.g. for s390
|
2017-02-24 02:43:15 +01:00
|
|
|
%define emu 1
|
|
|
|
%endif
|
|
|
|
|
2013-03-05 16:31:13 +01:00
|
|
|
%if 0%{?suse_version} == 1110
|
2012-11-28 10:34:03 +01:00
|
|
|
%define only_efi %{nil}
|
|
|
|
%define only_x86_64 %{nil}
|
|
|
|
%endif
|
|
|
|
|
2019-11-03 11:24:40 +01:00
|
|
|
Version: 2.04
|
2011-12-25 17:34:30 +01:00
|
|
|
Release: 0
|
2010-02-18 15:10:48 +01:00
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
2018-05-13 15:53:21 +02:00
|
|
|
License: GPL-3.0-or-later
|
2012-03-22 12:32:34 +01:00
|
|
|
Group: System/Boot
|
2020-03-12 22:58:59 +01:00
|
|
|
URL: http://www.gnu.org/software/grub/
|
2019-11-03 11:24:40 +01:00
|
|
|
Source0: https://ftp.gnu.org/gnu/grub/grub-%{version}.tar.xz
|
2010-02-18 15:10:48 +01:00
|
|
|
Source1: 90_persistent
|
|
|
|
Source2: grub.default
|
2010-03-15 00:45:00 +01:00
|
|
|
Source4: grub2.rpmlintrc
|
2012-08-31 09:28:14 +02:00
|
|
|
Source6: grub2-once
|
2012-09-23 21:04:15 +02:00
|
|
|
Source7: 20_memtest86+
|
2015-04-21 10:50:51 +02:00
|
|
|
Source8: README.ibm3215
|
2013-04-02 11:49:38 +02:00
|
|
|
Source10: openSUSE-UEFI-CA-Certificate.crt
|
|
|
|
Source11: SLES-UEFI-CA-Certificate.crt
|
2014-02-11 10:55:19 +01:00
|
|
|
Source12: grub2-snapper-plugin.sh
|
2014-10-05 20:27:20 +02:00
|
|
|
Source14: 80_suse_btrfs_snapshot
|
2015-04-21 10:50:51 +02:00
|
|
|
Source15: grub2-once.service
|
2015-12-17 15:53:41 +01:00
|
|
|
Source16: grub2-xen-pv-firmware.cfg
|
2015-08-28 08:25:56 +02:00
|
|
|
# required hook for systemd-sleep (bsc#941758)
|
|
|
|
Source17: grub2-systemd-sleep.sh
|
2018-02-02 22:19:58 +01:00
|
|
|
Source18: grub2-check-default.sh
|
2012-08-31 09:28:14 +02:00
|
|
|
Source1000: PATCH_POLICY
|
2012-06-29 06:59:42 +02:00
|
|
|
Patch1: rename-grub-info-file-to-grub2.patch
|
2010-02-18 15:10:48 +01:00
|
|
|
Patch2: grub2-linux.patch
|
2012-06-29 06:59:42 +02:00
|
|
|
Patch3: use-grub2-as-a-package-name.patch
|
2017-02-01 09:49:54 +01:00
|
|
|
Patch4: info-dir-entry.patch
|
2012-03-22 12:32:34 +01:00
|
|
|
Patch6: grub2-iterate-and-hook-for-extended-partition.patch
|
2012-06-29 14:19:02 +02:00
|
|
|
Patch8: grub2-ppc-terminfo.patch
|
2012-07-09 07:58:49 +02:00
|
|
|
Patch9: grub2-GRUB_CMDLINE_LINUX_RECOVERY-for-recovery-mode.patch
|
2012-07-23 10:00:52 +02:00
|
|
|
Patch10: grub2-fix-error-terminal-gfxterm-isn-t-found.patch
|
|
|
|
Patch12: grub2-fix-menu-in-xen-host-server.patch
|
2012-08-31 09:28:14 +02:00
|
|
|
Patch15: not-display-menu-when-boot-once.patch
|
|
|
|
Patch17: grub2-pass-corret-root-for-nfsroot.patch
|
2015-04-21 10:50:51 +02:00
|
|
|
Patch19: grub2-efi-HP-workaround.patch
|
2012-11-28 10:34:03 +01:00
|
|
|
Patch21: grub2-secureboot-add-linuxefi.patch
|
|
|
|
Patch22: grub2-secureboot-use-linuxefi-on-uefi.patch
|
|
|
|
Patch23: grub2-secureboot-no-insmod-on-sb.patch
|
|
|
|
Patch24: grub2-secureboot-provide-linuxefi-config.patch
|
2017-03-21 22:46:44 +01:00
|
|
|
Patch25: grub2-secureboot-chainloader.patch
|
|
|
|
Patch26: grub2-secureboot-use-linuxefi-on-uefi-in-os-prober.patch
|
|
|
|
Patch27: grub2-linuxefi-fix-boot-params.patch
|
2013-06-26 20:19:00 +02:00
|
|
|
Patch35: grub2-linguas.sh-no-rsync.patch
|
2014-04-09 13:01:02 +02:00
|
|
|
Patch37: grub2-use-Unifont-for-starfield-theme-terminal.patch
|
2014-01-30 11:23:54 +01:00
|
|
|
Patch38: grub2-s390x-01-Changes-made-and-files-added-in-order-to-allow-s390x.patch
|
2015-04-21 10:50:51 +02:00
|
|
|
Patch39: grub2-s390x-02-kexec-module-added-to-emu.patch
|
|
|
|
Patch40: grub2-s390x-03-output-7-bit-ascii.patch
|
|
|
|
Patch41: grub2-s390x-04-grub2-install.patch
|
|
|
|
Patch42: grub2-s390x-05-grub2-mkconfig.patch
|
|
|
|
Patch43: grub2-use-rpmsort-for-version-sorting.patch
|
|
|
|
Patch53: grub2-getroot-treat-mdadm-ddf-as-simple-device.patch
|
|
|
|
Patch56: grub2-setup-try-fs-embed-if-mbr-gap-too-small.patch
|
|
|
|
Patch58: grub2-xen-linux16.patch
|
|
|
|
Patch59: grub2-efi-disable-video-cirrus-and-bochus.patch
|
|
|
|
Patch60: grub2-editenv-add-warning-message.patch
|
|
|
|
Patch61: grub2-vbe-blacklist-preferred-1440x900x32.patch
|
2018-03-19 23:30:33 +01:00
|
|
|
Patch64: grub2-grubenv-in-btrfs-header.patch
|
2015-04-21 10:50:51 +02:00
|
|
|
Patch65: grub2-mkconfig-aarch64.patch
|
2015-10-02 09:22:55 +02:00
|
|
|
Patch70: grub2-default-distributor.patch
|
2015-11-04 15:31:39 +01:00
|
|
|
Patch71: grub2-menu-unrestricted.patch
|
2016-03-07 13:26:18 +01:00
|
|
|
Patch72: grub2-mkconfig-arm.patch
|
2017-02-24 02:43:15 +01:00
|
|
|
Patch75: grub2-s390x-06-loadparm.patch
|
|
|
|
Patch76: grub2-s390x-07-add-image-param-for-zipl-setup.patch
|
|
|
|
Patch77: grub2-s390x-08-workaround-part-to-disk.patch
|
|
|
|
Patch78: grub2-commands-introduce-read_file-subcommand.patch
|
|
|
|
Patch79: grub2-efi-chainload-harder.patch
|
|
|
|
Patch80: grub2-emu-4-all.patch
|
2017-03-21 22:46:44 +01:00
|
|
|
Patch81: grub2-lvm-allocate-metadata-buffer-from-raw-contents.patch
|
2017-06-05 18:49:53 +02:00
|
|
|
Patch82: grub2-diskfilter-support-pv-without-metadatacopies.patch
|
|
|
|
Patch83: grub2-efi-uga-64bit-fb.patch
|
2017-08-29 11:34:17 +02:00
|
|
|
Patch84: grub2-s390x-09-improve-zipl-setup.patch
|
2018-03-30 12:01:00 +02:00
|
|
|
Patch85: grub2-getroot-scan-disk-pv.patch
|
2018-10-09 15:52:40 +02:00
|
|
|
Patch92: grub2-util-30_os-prober-multiple-initrd.patch
|
|
|
|
Patch93: grub2-getroot-support-nvdimm.patch
|
2020-02-14 16:26:49 +01:00
|
|
|
Patch94: grub2-install-fix-not-a-directory-error.patch
|
2020-02-22 18:56:29 +01:00
|
|
|
Patch95: grub2-verifiers-fix-system-freeze-if-verify-failed.patch
|
2020-05-08 23:01:14 +02:00
|
|
|
Patch96: grub-install-force-journal-draining-to-ensure-data-i.patch
|
2013-12-19 12:10:56 +01:00
|
|
|
# Btrfs snapshot booting related patches
|
2014-08-30 16:03:50 +02:00
|
|
|
Patch101: grub2-btrfs-01-add-ability-to-boot-from-subvolumes.patch
|
|
|
|
Patch102: grub2-btrfs-02-export-subvolume-envvars.patch
|
|
|
|
Patch103: grub2-btrfs-03-follow_default.patch
|
|
|
|
Patch104: grub2-btrfs-04-grub2-install.patch
|
|
|
|
Patch105: grub2-btrfs-05-grub2-mkconfig.patch
|
2015-05-23 13:24:58 +02:00
|
|
|
Patch106: grub2-btrfs-06-subvol-mount.patch
|
2016-07-01 09:53:59 +02:00
|
|
|
Patch107: grub2-btrfs-07-subvol-fallback.patch
|
2016-08-18 10:19:54 +02:00
|
|
|
Patch108: grub2-btrfs-08-workaround-snapshot-menu-default-entry.patch
|
2017-05-20 14:28:59 +02:00
|
|
|
Patch109: grub2-btrfs-09-get-default-subvolume.patch
|
2018-08-02 14:49:00 +02:00
|
|
|
Patch110: grub2-btrfs-10-config-directory.patch
|
2019-11-03 11:24:40 +01:00
|
|
|
Patch111: 0001-btrfs-disable-zstd-support-for-i386-pc.patch
|
2016-02-09 13:31:01 +01:00
|
|
|
# Support EFI xen loader
|
|
|
|
Patch120: grub2-efi-xen-chainload.patch
|
|
|
|
Patch121: grub2-efi-chainloader-root.patch
|
|
|
|
Patch122: grub2-efi-xen-cmdline.patch
|
2017-03-21 22:46:44 +01:00
|
|
|
Patch123: grub2-efi-xen-cfg-unquote.patch
|
2018-04-17 11:09:31 +02:00
|
|
|
Patch124: grub2-efi-xen-removable.patch
|
2016-05-05 08:12:17 +02:00
|
|
|
# Hidden menu entry and hotkey "t" for text console
|
|
|
|
Patch140: grub2-Add-hidden-menu-entries.patch
|
|
|
|
Patch141: grub2-SUSE-Add-the-t-hotkey.patch
|
2016-08-11 18:53:05 +02:00
|
|
|
# Linux root device related patches
|
|
|
|
Patch163: grub2-zipl-setup-fix-btrfs-multipledev.patch
|
|
|
|
Patch164: grub2-suse-remove-linux-root-param.patch
|
2016-02-09 13:31:01 +01:00
|
|
|
# PPC64 LE support
|
|
|
|
Patch205: grub2-ppc64le-disable-video.patch
|
|
|
|
Patch207: grub2-ppc64le-memory-map.patch
|
2018-04-22 14:34:07 +02:00
|
|
|
# PPC
|
|
|
|
Patch211: grub2-ppc64-cas-reboot-support.patch
|
|
|
|
Patch212: grub2-install-remove-useless-check-PReP-partition-is-empty.patch
|
|
|
|
Patch213: grub2-Fix-incorrect-netmask-on-ppc64.patch
|
2018-08-02 14:49:00 +02:00
|
|
|
Patch215: grub2-ppc64-cas-new-scope.patch
|
2018-11-28 11:10:33 +01:00
|
|
|
Patch218: grub2-ppc64-cas-fix-double-free.patch
|
2015-04-21 10:50:51 +02:00
|
|
|
Patch233: grub2-use-stat-instead-of-udevadm-for-partition-lookup.patch
|
2017-02-14 00:38:49 +01:00
|
|
|
Patch234: fix-grub2-use-stat-instead-of-udevadm-for-partition-lookup-with-new-glibc.patch
|
2015-04-21 10:50:51 +02:00
|
|
|
Patch236: grub2-efi_gop-avoid-low-resolution.patch
|
2016-08-11 18:53:05 +02:00
|
|
|
# Support HTTP Boot IPv4 and IPv6 (fate#320129)
|
|
|
|
Patch281: 0002-net-read-bracketed-ipv6-addrs-and-port-numbers.patch
|
|
|
|
Patch282: 0003-bootp-New-net_bootp6-command.patch
|
|
|
|
Patch283: 0004-efinet-UEFI-IPv6-PXE-support.patch
|
|
|
|
Patch284: 0005-grub.texi-Add-net_bootp6-doument.patch
|
|
|
|
Patch285: 0006-bootp-Add-processing-DHCPACK-packet-from-HTTP-Boot.patch
|
|
|
|
Patch286: 0007-efinet-Setting-network-from-UEFI-device-path.patch
|
|
|
|
Patch287: 0008-efinet-Setting-DNS-server-from-UEFI-protocol.patch
|
2017-02-07 11:57:59 +01:00
|
|
|
# Fix GOP BLT support (FATE#322332)
|
|
|
|
Patch311: grub2-efi-gop-add-blt.patch
|
2017-03-21 22:46:44 +01:00
|
|
|
# TPM Support (FATE#315831)
|
|
|
|
Patch411: 0012-tpm-Build-tpm-as-module.patch
|
2017-09-07 22:10:42 +02:00
|
|
|
# UEFI HTTP and related network protocol support (FATE#320130)
|
|
|
|
Patch420: 0001-add-support-for-UEFI-network-protocols.patch
|
2017-12-06 08:53:04 +01:00
|
|
|
Patch421: 0002-AUDIT-0-http-boot-tracker-bug.patch
|
2018-02-02 22:19:58 +01:00
|
|
|
# check if default entry need to be corrected for updated distributor version
|
|
|
|
# and/or use fallback entry if default kernel entry removed (bsc#1065349)
|
|
|
|
Patch430: grub2-mkconfig-default-entry-correction.patch
|
2018-05-23 16:06:18 +02:00
|
|
|
Patch431: grub2-s390x-10-keep-network-at-kexec.patch
|
2020-03-12 22:58:59 +01:00
|
|
|
Patch432: grub2-s390x-11-secureboot.patch
|
2018-12-27 00:21:53 +01:00
|
|
|
# Support for UEFI Secure Boot on AArch64 (FATE#326541)
|
2019-07-08 15:01:22 +02:00
|
|
|
Patch450: grub2-secureboot-install-signed-grub.patch
|
2018-06-25 11:33:36 +02:00
|
|
|
Patch501: grub2-btrfs-help-on-snapper-rollback.patch
|
2019-02-06 15:44:34 +01:00
|
|
|
# Improved hiDPI device support (FATE#326680)
|
|
|
|
Patch510: grub2-video-limit-the-resolution-for-fixed-bimap-font.patch
|
|
|
|
# Support long menuentries (FATE#325760)
|
|
|
|
Patch511: grub2-gfxmenu-support-scrolling-menu-entry-s-text.patch
|
2019-11-03 11:24:40 +01:00
|
|
|
# RISC-V fixes
|
|
|
|
Patch601: risc-v-fix-computation-of-pc-relative-relocation-offset.patch
|
|
|
|
Patch602: risc-v-add-clzdi2-symbol.patch
|
|
|
|
Patch603: grub-install-define-default-platform-for-risc-v.patch
|
2020-04-13 12:51:36 +02:00
|
|
|
# Fix gcc-10 build fail
|
|
|
|
Patch610: 0001-mdraid1x_linux-Fix-gcc10-error-Werror-array-bounds.patch
|
|
|
|
Patch611: 0002-zfs-Fix-gcc10-error-Werror-zero-length-bounds.patch
|
2020-03-25 23:43:37 +01:00
|
|
|
# bsc#1166409 - Grub netbooting does not search for grub.cfg files with mac
|
|
|
|
# address or ip address in filename
|
|
|
|
Patch700: 0001-normal-Move-common-datetime-functions-out-of-the-nor.patch
|
|
|
|
Patch701: 0002-kern-Add-X-option-to-printf-functions.patch
|
|
|
|
Patch702: 0003-normal-main-Search-for-specific-config-files-for-net.patch
|
|
|
|
Patch703: 0004-datetime-Enable-the-datetime-module-for-the-emu-plat.patch
|
2014-04-12 21:28:53 +02:00
|
|
|
|
2010-09-13 18:50:45 +02:00
|
|
|
Requires: gettext-runtime
|
2012-11-13 09:53:25 +01:00
|
|
|
%if 0%{?suse_version} >= 1140
|
2015-04-21 10:50:51 +02:00
|
|
|
%ifnarch s390x
|
2015-02-06 10:56:06 +01:00
|
|
|
Recommends: os-prober
|
2012-11-13 09:53:25 +01:00
|
|
|
%endif
|
2015-04-21 10:50:51 +02:00
|
|
|
# xorriso not available using grub2-mkrescue (bnc#812681)
|
2018-08-13 09:54:03 +02:00
|
|
|
# downgrade to suggest as minimal system can't afford pulling in tcl/tk and half of the x11 stack (bsc#1102515)
|
|
|
|
Suggests: libburnia-tools
|
2020-03-25 23:43:37 +01:00
|
|
|
Suggests: mtools
|
2015-04-21 10:50:51 +02:00
|
|
|
%endif
|
2012-11-28 10:34:03 +01:00
|
|
|
%if ! 0%{?only_efi:1}
|
|
|
|
Requires: grub2-%{grubarch} = %{version}-%{release}
|
|
|
|
%endif
|
2019-02-06 15:44:34 +01:00
|
|
|
%ifarch s390x
|
|
|
|
# required utilities by grub2-s390x-04-grub2-install.patch
|
|
|
|
# use 'showconsole' to determine console device. (bnc#876743)
|
|
|
|
Requires: /sbin/showconsole
|
|
|
|
Requires: kexec-tools
|
|
|
|
# for /sbin/zipl used by grub2-zipl-setup
|
|
|
|
Requires: s390-tools
|
|
|
|
%endif
|
|
|
|
%ifarch ppc64 ppc64le
|
|
|
|
Requires: powerpc-utils
|
|
|
|
%endif
|
2010-03-15 00:45:00 +01:00
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-03-15 00:45:00 +01:00
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%if 0%{?only_x86_64:1}
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
%else
|
2019-11-03 11:24:40 +01:00
|
|
|
ExclusiveArch: %{ix86} x86_64 ppc ppc64 ppc64le s390x aarch64 %{arm} riscv64
|
2012-11-28 10:34:03 +01:00
|
|
|
%endif
|
2011-08-02 16:45:10 +02:00
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
%description
|
2013-02-21 15:32:16 +01:00
|
|
|
This is the second version of the GRUB (Grand Unified Bootloader), a
|
|
|
|
highly configurable and customizable bootloader with modular
|
|
|
|
architecture. It support rich scale of kernel formats, file systems,
|
2010-02-18 15:10:48 +01:00
|
|
|
computer architectures and hardware devices.
|
|
|
|
|
2014-01-17 11:03:50 +01:00
|
|
|
This package includes user space utlities to manage GRUB on your system.
|
2013-02-21 15:32:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Gordon Matzigkeit
|
|
|
|
Yoshinori K. Okuji
|
|
|
|
Colin Watson
|
|
|
|
Colin D. Bennett
|
2013-03-12 15:02:26 +01:00
|
|
|
Vesa Jääskeläinen
|
2013-02-21 15:32:16 +01:00
|
|
|
Robert Millan
|
|
|
|
Carles Pina
|
2015-08-26 11:54:23 +02:00
|
|
|
|
2014-01-17 11:03:50 +01:00
|
|
|
%package branding-upstream
|
|
|
|
|
|
|
|
Summary: Upstream branding for GRUB2's graphical console
|
|
|
|
Group: System/Fhs
|
2019-02-06 15:44:34 +01:00
|
|
|
Requires: %{name} = %{version}
|
2014-01-17 11:03:50 +01:00
|
|
|
|
|
|
|
%description branding-upstream
|
|
|
|
Upstream branding for GRUB2's graphical console
|
|
|
|
|
2017-02-24 02:43:15 +01:00
|
|
|
%if ! 0%{?only_efi:1}
|
2012-11-28 10:34:03 +01:00
|
|
|
%package %{grubarch}
|
|
|
|
|
2013-02-21 15:32:16 +01:00
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
2012-11-28 10:34:03 +01:00
|
|
|
Group: System/Boot
|
2019-02-06 15:44:34 +01:00
|
|
|
%if %{platform} != emu
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires(post): %{name} = %{version}
|
2017-01-19 10:38:17 +01:00
|
|
|
%if 0%{?update_bootloader_requires:1}
|
|
|
|
%update_bootloader_requires
|
|
|
|
%else
|
2013-03-22 11:18:12 +01:00
|
|
|
Requires: perl-Bootloader
|
|
|
|
Requires(post): perl-Bootloader
|
2017-01-19 10:38:17 +01:00
|
|
|
%endif
|
2012-11-28 10:34:03 +01:00
|
|
|
|
|
|
|
%description %{grubarch}
|
|
|
|
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
|
|
|
|
bootloader with modular architecture. It supports rich variety of kernel formats,
|
|
|
|
file systems, computer architectures and hardware devices. This subpackage
|
|
|
|
provides support for %{platform} systems.
|
|
|
|
|
2020-03-25 23:43:37 +01:00
|
|
|
%package %{grubarch}-debug
|
|
|
|
Summary: Debug symbols for %{grubarch}
|
|
|
|
Group: System/Boot
|
|
|
|
%if %{platform} != emu
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
Requires: %{name}-%{grubarch} = %{version}
|
|
|
|
|
|
|
|
%description %{grubarch}-debug
|
|
|
|
Debug information for %{name}-%{grubarch}
|
|
|
|
|
|
|
|
Information on how to debug grub can be found online:
|
|
|
|
https://www.cnblogs.com/coryxie/archive/2013/03/12/2956807.html
|
|
|
|
|
2017-02-24 02:43:15 +01:00
|
|
|
%endif
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
%ifarch %{efi}
|
2012-11-28 10:34:03 +01:00
|
|
|
|
|
|
|
%package %{grubefiarch}
|
|
|
|
|
2013-02-21 15:32:16 +01:00
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
2017-09-15 21:02:22 +02:00
|
|
|
Group: System/Boot
|
2019-02-06 15:44:34 +01:00
|
|
|
BuildArch: noarch
|
2019-11-03 11:24:40 +01:00
|
|
|
# Require efibootmgr
|
|
|
|
# Without it grub-install is broken so break the package as well if unavailable
|
2011-10-25 16:00:45 +02:00
|
|
|
Requires: efibootmgr
|
2013-03-22 11:18:12 +01:00
|
|
|
Requires(post): efibootmgr
|
2019-02-06 15:44:34 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires(post): %{name} = %{version}
|
2017-01-19 10:38:17 +01:00
|
|
|
%if 0%{?update_bootloader_requires:1}
|
|
|
|
%update_bootloader_requires
|
|
|
|
%else
|
2013-03-22 11:18:12 +01:00
|
|
|
Requires: perl-Bootloader >= 0.706
|
|
|
|
Requires(post): perl-Bootloader >= 0.706
|
2017-01-19 10:38:17 +01:00
|
|
|
%endif
|
2013-03-26 15:55:22 +01:00
|
|
|
Provides: %{name}-efi = %{version}-%{release}
|
2013-03-22 11:18:12 +01:00
|
|
|
Obsoletes: %{name}-efi < %{version}-%{release}
|
2011-08-26 10:01:42 +02:00
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%description %{grubefiarch}
|
2011-08-26 10:01:42 +02:00
|
|
|
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
|
2012-02-23 15:32:40 +01:00
|
|
|
bootloader with modular architecture. It supports rich variety of kernel formats,
|
2011-08-26 10:01:42 +02:00
|
|
|
file systems, computer architectures and hardware devices. This subpackage
|
|
|
|
provides support for EFI systems.
|
2012-11-28 10:34:03 +01:00
|
|
|
|
2020-03-25 23:43:37 +01:00
|
|
|
%package %{grubefiarch}-debug
|
|
|
|
Summary: Debug symbols for %{grubefiarch}
|
|
|
|
Group: System/Boot
|
|
|
|
%if %{platform} != emu
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
Requires: %{name}-%{grubefiarch} = %{version}
|
|
|
|
|
|
|
|
%description %{grubefiarch}-debug
|
|
|
|
Debug symbols for %{name}-%{grubefiarch}
|
|
|
|
|
|
|
|
Information on how to debug grub can be found online:
|
|
|
|
https://www.cnblogs.com/coryxie/archive/2013/03/12/2956807.html
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
%endif
|
|
|
|
|
2015-02-20 13:50:50 +01:00
|
|
|
%ifarch %{ix86} x86_64
|
2014-04-12 21:28:53 +02:00
|
|
|
|
2015-02-20 13:50:50 +01:00
|
|
|
%package %{grubxenarch}
|
2014-04-12 21:28:53 +02:00
|
|
|
|
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
|
|
|
Group: System/Boot
|
|
|
|
Provides: %{name}-xen = %{version}-%{release}
|
|
|
|
Obsoletes: %{name}-xen < %{version}-%{release}
|
2018-08-13 09:54:03 +02:00
|
|
|
BuildArch: noarch
|
2014-04-12 21:28:53 +02:00
|
|
|
|
2015-02-20 13:50:50 +01:00
|
|
|
%description %{grubxenarch}
|
2014-04-12 21:28:53 +02:00
|
|
|
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
|
|
|
|
bootloader with modular architecture. It supports rich variety of kernel formats,
|
|
|
|
file systems, computer architectures and hardware devices. This subpackage
|
|
|
|
provides support for XEN systems.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
2014-02-11 10:55:19 +01:00
|
|
|
%package snapper-plugin
|
|
|
|
|
|
|
|
Summary: Grub2's snapper plugin
|
|
|
|
Group: System/Fhs
|
2019-02-06 15:44:34 +01:00
|
|
|
Requires: %{name} = %{version}
|
2014-02-11 10:55:19 +01:00
|
|
|
Requires: libxml2-tools
|
2014-02-15 08:53:38 +01:00
|
|
|
Supplements: packageand(snapper:grub2)
|
2014-02-11 10:55:19 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description snapper-plugin
|
|
|
|
Grub2's snapper plugin for advanced btrfs snapshot boot menu management
|
|
|
|
|
2015-08-28 08:25:56 +02:00
|
|
|
%if 0%{?has_systemd:1}
|
|
|
|
%package systemd-sleep-plugin
|
|
|
|
|
|
|
|
Summary: Grub2's systemd-sleep plugin
|
|
|
|
Group: System/Fhs
|
|
|
|
Requires: grub2
|
|
|
|
Requires: util-linux
|
|
|
|
Supplements: packageand(systemd:grub2)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description systemd-sleep-plugin
|
|
|
|
Grub2's systemd-sleep plugin for directly booting hibernated kernel image in
|
|
|
|
swap partition while in resuming
|
|
|
|
%endif
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
%prep
|
2012-06-29 06:59:42 +02:00
|
|
|
# We create (if we build for efi) two copies of the sources in the Builddir
|
2019-11-03 11:24:40 +01:00
|
|
|
%setup -q -n grub-%{version}
|
2012-06-29 06:59:42 +02:00
|
|
|
%patch1 -p1
|
2012-03-22 12:32:34 +01:00
|
|
|
%patch2 -p1
|
2011-05-09 10:48:37 +02:00
|
|
|
%patch3 -p1
|
2017-02-01 09:49:54 +01:00
|
|
|
%patch4 -p1
|
2012-03-22 12:32:34 +01:00
|
|
|
%patch6 -p1
|
2012-06-29 14:19:02 +02:00
|
|
|
%patch8 -p1
|
2012-07-09 07:58:49 +02:00
|
|
|
%patch9 -p1
|
2012-07-23 10:00:52 +02:00
|
|
|
%patch10 -p1
|
|
|
|
%patch12 -p1
|
2012-08-31 09:28:14 +02:00
|
|
|
%patch15 -p1
|
|
|
|
%patch17 -p1
|
2015-04-21 10:50:51 +02:00
|
|
|
%patch19 -p1
|
2012-11-28 10:34:03 +01:00
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
|
|
|
%patch24 -p1
|
2017-03-21 22:46:44 +01:00
|
|
|
%patch25 -p1
|
|
|
|
%patch26 -p1
|
|
|
|
%patch27 -p1
|
2013-06-26 20:19:00 +02:00
|
|
|
%patch35 -p1
|
2014-01-17 11:03:50 +01:00
|
|
|
%patch37 -p1
|
2014-01-30 11:23:54 +01:00
|
|
|
%patch38 -p1
|
2014-04-26 11:44:56 +02:00
|
|
|
%patch39 -p1
|
2014-08-13 17:07:57 +02:00
|
|
|
%patch40 -p1
|
2014-08-15 09:55:31 +02:00
|
|
|
%patch41 -p1
|
|
|
|
%patch42 -p1
|
2014-09-17 17:41:59 +02:00
|
|
|
%patch43 -p1
|
2015-04-21 10:50:51 +02:00
|
|
|
%patch53 -p1
|
|
|
|
%patch56 -p1
|
|
|
|
%patch58 -p1
|
|
|
|
%patch59 -p1
|
|
|
|
%patch60 -p1
|
|
|
|
%patch61 -p1
|
|
|
|
%patch64 -p1
|
|
|
|
%patch65 -p1
|
2015-10-02 09:22:55 +02:00
|
|
|
%patch70 -p1
|
2015-11-04 15:31:39 +01:00
|
|
|
%patch71 -p1
|
2015-12-17 15:53:41 +01:00
|
|
|
%patch72 -p1
|
2017-02-24 02:43:15 +01:00
|
|
|
%patch75 -p1
|
|
|
|
%patch76 -p1
|
|
|
|
%patch77 -p1
|
|
|
|
%patch78 -p1
|
|
|
|
%patch79 -p1
|
|
|
|
%patch80 -p1
|
|
|
|
%patch81 -p1
|
2017-06-05 18:49:53 +02:00
|
|
|
%patch82 -p1
|
|
|
|
%patch83 -p1
|
2017-08-29 11:34:17 +02:00
|
|
|
%patch84 -p1
|
2017-11-10 14:42:35 +01:00
|
|
|
%patch85 -p1
|
2018-10-09 15:52:40 +02:00
|
|
|
%patch92 -p1
|
|
|
|
%patch93 -p1
|
2020-02-14 16:26:49 +01:00
|
|
|
%patch94 -p1
|
2020-02-22 18:56:29 +01:00
|
|
|
%patch95 -p1
|
2020-05-08 23:01:14 +02:00
|
|
|
%patch96 -p1
|
2013-12-19 12:10:56 +01:00
|
|
|
%patch101 -p1
|
|
|
|
%patch102 -p1
|
|
|
|
%patch103 -p1
|
2014-08-30 16:03:50 +02:00
|
|
|
%patch104 -p1
|
|
|
|
%patch105 -p1
|
2015-05-23 13:24:58 +02:00
|
|
|
%patch106 -p1
|
2016-07-01 09:53:59 +02:00
|
|
|
%patch107 -p1
|
2016-08-18 10:19:54 +02:00
|
|
|
%patch108 -p1
|
2017-05-20 14:28:59 +02:00
|
|
|
%patch109 -p1
|
2018-08-02 14:49:00 +02:00
|
|
|
%patch110 -p1
|
2019-11-03 11:24:40 +01:00
|
|
|
%patch111 -p1
|
2016-02-09 13:31:01 +01:00
|
|
|
%patch120 -p1
|
|
|
|
%patch121 -p1
|
|
|
|
%patch122 -p1
|
2017-03-21 22:46:44 +01:00
|
|
|
%patch123 -p1
|
2018-04-17 11:09:31 +02:00
|
|
|
%patch124 -p1
|
2016-05-05 08:12:17 +02:00
|
|
|
%patch140 -p1
|
|
|
|
%patch141 -p1
|
2016-08-11 18:53:05 +02:00
|
|
|
%patch163 -p1
|
|
|
|
%patch164 -p1
|
2014-04-12 21:28:53 +02:00
|
|
|
%patch205 -p1
|
|
|
|
%patch207 -p1
|
2018-04-22 14:34:07 +02:00
|
|
|
%patch211 -p1
|
|
|
|
%patch212 -p1
|
|
|
|
%patch213 -p1
|
2018-08-02 14:49:00 +02:00
|
|
|
%patch215 -p1
|
2018-11-28 11:10:33 +01:00
|
|
|
%patch218 -p1
|
2014-08-13 17:07:57 +02:00
|
|
|
%patch233 -p1
|
2017-02-14 00:38:49 +01:00
|
|
|
%patch234 -p1
|
2015-04-21 10:50:51 +02:00
|
|
|
%patch236 -p1
|
2016-08-11 18:53:05 +02:00
|
|
|
%patch281 -p1
|
|
|
|
%patch282 -p1
|
|
|
|
%patch283 -p1
|
|
|
|
%patch284 -p1
|
|
|
|
%patch285 -p1
|
|
|
|
%patch286 -p1
|
|
|
|
%patch287 -p1
|
2017-02-07 11:57:59 +01:00
|
|
|
%patch311 -p1
|
2017-03-21 22:46:44 +01:00
|
|
|
%patch411 -p1
|
2017-09-07 22:10:42 +02:00
|
|
|
%patch420 -p1
|
2017-12-06 08:53:04 +01:00
|
|
|
%patch421 -p1
|
2018-02-02 22:19:58 +01:00
|
|
|
%patch430 -p1
|
2018-05-23 16:06:18 +02:00
|
|
|
%patch431 -p1
|
2020-03-12 22:58:59 +01:00
|
|
|
%patch432 -p1
|
2018-12-27 00:21:53 +01:00
|
|
|
%patch450 -p1
|
2018-06-25 11:33:36 +02:00
|
|
|
%patch501 -p1
|
2019-02-06 15:44:34 +01:00
|
|
|
%patch510 -p1
|
|
|
|
%patch511 -p1
|
2019-11-03 11:24:40 +01:00
|
|
|
%patch601 -p1
|
|
|
|
%patch602 -p1
|
|
|
|
%patch603 -p1
|
2020-04-13 12:51:36 +02:00
|
|
|
%patch610 -p1
|
|
|
|
%patch611 -p1
|
2020-03-25 23:43:37 +01:00
|
|
|
%patch700 -p1
|
|
|
|
%patch701 -p1
|
|
|
|
%patch702 -p1
|
|
|
|
%patch703 -p1
|
2018-02-09 15:45:30 +01:00
|
|
|
|
|
|
|
%build
|
2019-02-06 15:44:34 +01:00
|
|
|
# collect evidence to debug spurious build failure on SLE15
|
|
|
|
ulimit -a
|
2017-08-08 11:58:03 +02:00
|
|
|
# patches above may update the timestamp of grub.texi
|
|
|
|
# and via build-aux/mdate-sh they end up in grub2.info, breaking build-compare
|
|
|
|
[ -z "$SOURCE_DATE_EPOCH" ] ||\
|
|
|
|
[ `stat -c %Y docs/grub.texi` -lt $SOURCE_DATE_EPOCH ] ||\
|
|
|
|
touch -d@$SOURCE_DATE_EPOCH docs/grub.texi
|
2016-08-11 18:53:05 +02:00
|
|
|
|
|
|
|
# This simplifies patch handling without need to use git to create patch
|
|
|
|
# that renames file
|
|
|
|
mv docs/grub.texi docs/grub2.texi
|
2010-03-15 00:45:00 +01:00
|
|
|
|
2015-04-21 10:50:51 +02:00
|
|
|
cp %{SOURCE8} .
|
2013-02-21 15:32:16 +01:00
|
|
|
mkdir build
|
2011-08-26 10:01:42 +02:00
|
|
|
%ifarch %{efi}
|
2013-02-21 15:32:16 +01:00
|
|
|
mkdir build-efi
|
2011-08-26 10:01:42 +02:00
|
|
|
%endif
|
2015-02-20 13:50:50 +01:00
|
|
|
%ifarch %{ix86} x86_64
|
2014-04-12 21:28:53 +02:00
|
|
|
mkdir build-xen
|
|
|
|
%endif
|
2017-02-24 02:43:15 +01:00
|
|
|
%if %{emu}
|
|
|
|
mkdir build-emu
|
|
|
|
%endif
|
2010-02-18 15:10:48 +01:00
|
|
|
|
2017-11-10 14:42:35 +01:00
|
|
|
export PYTHON=%{_bindir}/python3
|
2019-02-06 15:44:34 +01:00
|
|
|
[ -x $PYTHON ] || unset PYTHON # try 'python', if 'python3' is unavailable
|
2014-01-10 21:19:21 +01:00
|
|
|
# autogen calls autoreconf -vi
|
|
|
|
./autogen.sh
|
2013-02-21 15:32:16 +01:00
|
|
|
# Not yet:
|
|
|
|
%define common_conf_options TARGET_LDFLAGS=-static --program-transform-name=s,grub,%{name},
|
|
|
|
# This does NOT work on SLE11:
|
|
|
|
%define _configure ../configure
|
|
|
|
|
|
|
|
# We don't want to let rpm override *FLAGS with default a.k.a bogus values.
|
2012-11-13 09:53:25 +01:00
|
|
|
CFLAGS="-fno-strict-aliasing -fno-inline-functions-called-once "
|
2011-08-26 10:01:42 +02:00
|
|
|
CXXFLAGS=" "
|
|
|
|
FFLAGS=" "
|
|
|
|
export CFLAGS CXXFLAGS FFLAGS
|
2013-02-21 15:32:16 +01:00
|
|
|
|
2017-02-24 02:43:15 +01:00
|
|
|
%if %{emu}
|
|
|
|
cd build-emu
|
|
|
|
%define arch_specific --enable-device-mapper --disable-grub-mount
|
2019-02-06 15:44:34 +01:00
|
|
|
TLFLAGS="-fPIC"
|
2017-02-24 02:43:15 +01:00
|
|
|
|
|
|
|
# -static is needed so that autoconf script is able to link
|
|
|
|
# test that looks for _start symbol on 64 bit platforms
|
2019-02-06 15:44:34 +01:00
|
|
|
../configure TARGET_LDFLAGS=$TLFLAGS \
|
2017-02-24 02:43:15 +01:00
|
|
|
--prefix=%{_prefix} \
|
2019-02-06 15:44:34 +01:00
|
|
|
--libdir=%{_datadir} \
|
2017-02-24 02:43:15 +01:00
|
|
|
--sysconfdir=%{_sysconfdir} \
|
|
|
|
--target=%{_target_platform} \
|
|
|
|
--with-platform=emu \
|
|
|
|
%{arch_specific} \
|
|
|
|
--program-transform-name=s,grub,%{name},
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
cd ..
|
|
|
|
if [ "%{platform}" = "emu" ]; then
|
|
|
|
rmdir build
|
|
|
|
mv build-emu build
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
2015-02-20 13:50:50 +01:00
|
|
|
%ifarch %{ix86} x86_64
|
2014-04-12 21:28:53 +02:00
|
|
|
cd build-xen
|
|
|
|
../configure \
|
|
|
|
TARGET_LDFLAGS=-static \
|
|
|
|
--prefix=%{_prefix} \
|
2019-02-06 15:44:34 +01:00
|
|
|
--libdir=%{_datadir} \
|
2014-04-12 21:28:53 +02:00
|
|
|
--sysconfdir=%{_sysconfdir} \
|
|
|
|
--target=%{_target_platform} \
|
|
|
|
--with-platform=xen \
|
|
|
|
--program-transform-name=s,grub,%{name},
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2015-05-15 09:54:31 +02:00
|
|
|
./grub-mkstandalone --grub-mkimage=./grub-mkimage -o grub.xen -O %{grubxenarch} -d grub-core/ "/boot/grub/grub.cfg=%{SOURCE16}"
|
2014-04-12 21:28:53 +02:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
%endif
|
|
|
|
|
2013-02-21 15:32:16 +01:00
|
|
|
%ifarch %{efi}
|
|
|
|
cd build-efi
|
|
|
|
../configure \
|
2011-08-26 10:01:42 +02:00
|
|
|
TARGET_LDFLAGS=-static \
|
2013-02-21 15:32:16 +01:00
|
|
|
--prefix=%{_prefix} \
|
2019-02-06 15:44:34 +01:00
|
|
|
--libdir=%{_datadir} \
|
2013-02-21 15:32:16 +01:00
|
|
|
--sysconfdir=%{_sysconfdir} \
|
2011-12-30 08:45:41 +01:00
|
|
|
--target=%{_target_platform} \
|
2011-08-26 10:01:42 +02:00
|
|
|
--with-platform=efi \
|
2012-10-26 17:06:09 +02:00
|
|
|
--program-transform-name=s,grub,%{name},
|
2012-07-04 22:12:58 +02:00
|
|
|
make %{?_smp_mflags}
|
2012-11-28 10:34:03 +01:00
|
|
|
|
|
|
|
#TODO: add efifwsetup module
|
|
|
|
|
2019-02-06 15:44:34 +01:00
|
|
|
FS_MODULES="btrfs ext2 xfs jfs reiserfs"
|
2016-08-18 10:19:54 +02:00
|
|
|
CD_MODULES=" all_video boot cat chain configfile echo true \
|
2013-02-21 15:32:16 +01:00
|
|
|
efinet font gfxmenu gfxterm gzio halt iso9660 \
|
2012-11-28 10:34:03 +01:00
|
|
|
jpeg minicmd normal part_apple part_msdos part_gpt \
|
|
|
|
password_pbkdf2 png reboot search search_fs_uuid \
|
2013-03-08 09:12:46 +01:00
|
|
|
search_fs_file search_label sleep test video fat loadenv"
|
2016-10-10 17:33:06 +02:00
|
|
|
PXE_MODULES="efinet tftp http"
|
2016-08-26 23:15:13 +02:00
|
|
|
CRYPTO_MODULES="luks gcry_rijndael gcry_sha1 gcry_sha256"
|
2012-11-28 10:34:03 +01:00
|
|
|
|
2019-07-08 15:01:22 +02:00
|
|
|
%ifarch x86_64
|
2019-11-03 11:24:40 +01:00
|
|
|
CD_MODULES="${CD_MODULES} shim_lock linuxefi"
|
2011-08-26 10:01:42 +02:00
|
|
|
%else
|
2012-11-28 10:34:03 +01:00
|
|
|
CD_MODULES="${CD_MODULES} linux"
|
2011-08-26 10:01:42 +02:00
|
|
|
%endif
|
2012-11-28 10:34:03 +01:00
|
|
|
|
2017-01-19 10:38:17 +01:00
|
|
|
GRUB_MODULES="${CD_MODULES} ${FS_MODULES} ${PXE_MODULES} ${CRYPTO_MODULES} mdraid09 mdraid1x lvm serial"
|
2013-01-31 14:48:08 +01:00
|
|
|
./grub-mkimage -O %{grubefiarch} -o grub.efi --prefix= \
|
2012-11-28 10:34:03 +01:00
|
|
|
-d grub-core ${GRUB_MODULES}
|
2019-11-03 11:24:40 +01:00
|
|
|
%ifarch x86_64
|
2017-03-21 22:46:44 +01:00
|
|
|
./grub-mkimage -O %{grubefiarch} -o grub-tpm.efi --prefix= \
|
|
|
|
-d grub-core ${GRUB_MODULES} tpm
|
2019-11-03 11:24:40 +01:00
|
|
|
%endif
|
2013-04-02 11:49:38 +02:00
|
|
|
|
2018-12-27 00:21:53 +01:00
|
|
|
%ifarch x86_64 aarch64
|
2013-04-02 11:49:38 +02:00
|
|
|
%if 0%{?suse_version} >= 1230 || 0%{?suse_version} == 1110
|
|
|
|
if test -e %{_sourcedir}/_projectcert.crt ; then
|
|
|
|
prjsubject=$(openssl x509 -in %{_sourcedir}/_projectcert.crt -noout -subject_hash)
|
|
|
|
prjissuer=$(openssl x509 -in %{_sourcedir}/_projectcert.crt -noout -issuer_hash)
|
|
|
|
opensusesubject=$(openssl x509 -in %{SOURCE10} -noout -subject_hash)
|
|
|
|
slessubject=$(openssl x509 -in %{SOURCE11} -noout -subject_hash)
|
|
|
|
if test "$prjissuer" = "$opensusesubject" ; then
|
|
|
|
cert=%{SOURCE10}
|
|
|
|
fi
|
|
|
|
if test "$prjissuer" = "$slessubject" ; then
|
|
|
|
cert=%{SOURCE11}
|
|
|
|
fi
|
|
|
|
if test "$prjsubject" = "$prjissuer" ; then
|
|
|
|
cert=%{_sourcedir}/_projectcert.crt
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test -z "$cert" ; then
|
|
|
|
echo "cannot identify project, assuming openSUSE signing"
|
|
|
|
cert=%{SOURCE10}
|
|
|
|
fi
|
|
|
|
|
|
|
|
openssl x509 -in $cert -outform DER -out grub.der
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
cd ..
|
|
|
|
%endif
|
2012-06-29 06:59:42 +02:00
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%if ! 0%{?only_efi:1}
|
2013-02-21 15:32:16 +01:00
|
|
|
cd build
|
2011-05-09 10:48:37 +02:00
|
|
|
|
2011-12-30 08:45:41 +01:00
|
|
|
# 64-bit x86-64 machines use 32-bit boot loader
|
|
|
|
# (We cannot just redefine _target_cpu, as we'd get i386.rpm packages then)
|
|
|
|
%ifarch x86_64
|
|
|
|
%define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
|
|
|
|
%endif
|
|
|
|
|
2017-02-24 02:43:15 +01:00
|
|
|
%if %{platform} != "emu"
|
2015-04-21 10:50:51 +02:00
|
|
|
%define arch_specific --enable-device-mapper
|
2019-02-06 15:44:34 +01:00
|
|
|
TLFLAGS="-static"
|
2014-01-30 11:23:54 +01:00
|
|
|
|
2017-02-16 08:12:06 +01:00
|
|
|
# -static is needed so that autoconf script is able to link
|
|
|
|
# test that looks for _start symbol on 64 bit platforms
|
2019-02-06 15:44:34 +01:00
|
|
|
../configure TARGET_LDFLAGS="$TLFLAGS" \
|
2013-02-21 15:32:16 +01:00
|
|
|
--prefix=%{_prefix} \
|
2019-02-06 15:44:34 +01:00
|
|
|
--libdir=%{_datadir} \
|
2013-02-21 15:32:16 +01:00
|
|
|
--sysconfdir=%{_sysconfdir} \
|
2011-12-30 08:45:41 +01:00
|
|
|
--target=%{_target_platform} \
|
2011-08-02 16:45:10 +02:00
|
|
|
--with-platform=%{platform} \
|
2015-04-21 10:50:51 +02:00
|
|
|
%{arch_specific} \
|
2017-02-16 08:12:06 +01:00
|
|
|
--program-transform-name=s,grub,%{name},
|
2011-05-09 10:48:37 +02:00
|
|
|
make %{?_smp_mflags}
|
2012-11-28 10:34:03 +01:00
|
|
|
%endif
|
2017-02-24 02:43:15 +01:00
|
|
|
cd ..
|
|
|
|
%endif
|
2010-02-18 15:10:48 +01:00
|
|
|
|
|
|
|
%install
|
2014-04-12 21:28:53 +02:00
|
|
|
|
2015-02-20 13:50:50 +01:00
|
|
|
%ifarch %{ix86} x86_64
|
2014-04-12 21:28:53 +02:00
|
|
|
cd build-xen
|
2019-02-14 14:12:45 +01:00
|
|
|
%make_install
|
|
|
|
install -m 644 grub.xen %{buildroot}/%{_datadir}/%{name}/%{grubxenarch}/.
|
2019-02-17 12:18:40 +01:00
|
|
|
# provide compatibility sym-link for VM definitions pointing to old location
|
|
|
|
install -d %{buildroot}%{_libdir}/%{name}/%{grubxenarch}
|
|
|
|
ln -srf %{buildroot}%{_datadir}/%{name}/%{grubxenarch}/grub.xen %{buildroot}%{_libdir}/%{name}/%{grubxenarch}/grub.xen
|
|
|
|
cat <<-EoM >%{buildroot}%{_libdir}/%{name}/%{grubxenarch}/DEPRECATED
|
|
|
|
This directory and its contents was moved to %{_datadir}/%{name}/%{grubxenarch}.
|
|
|
|
Individual symbolic links are provided for a smooth transition.
|
|
|
|
Please update your VM definition files to use the new location!
|
|
|
|
EoM
|
2014-04-12 21:28:53 +02:00
|
|
|
cd ..
|
|
|
|
%endif
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
%ifarch %{efi}
|
2013-02-21 15:32:16 +01:00
|
|
|
cd build-efi
|
2019-02-14 14:12:45 +01:00
|
|
|
%make_install
|
2019-11-03 11:24:40 +01:00
|
|
|
install -m 644 grub.efi %{buildroot}/%{_datadir}/%{name}/%{grubefiarch}/.
|
|
|
|
%ifarch x86_64
|
|
|
|
install -m 644 grub-tpm.efi %{buildroot}/%{_datadir}/%{name}/%{grubefiarch}/.
|
|
|
|
%endif
|
2013-01-31 14:48:08 +01:00
|
|
|
|
|
|
|
# Create grub.efi link to system efi directory
|
|
|
|
# This is for tools like kiwi not fiddling with the path
|
2019-02-06 15:44:34 +01:00
|
|
|
%define sysefibasedir %{_datadir}/efi
|
|
|
|
%define sysefidir %{sysefibasedir}/%{_target_cpu}
|
2019-02-14 14:12:45 +01:00
|
|
|
install -d %{buildroot}/%{sysefidir}
|
2019-02-17 12:18:40 +01:00
|
|
|
ln -sr %{buildroot}/%{_datadir}/%{name}/%{grubefiarch}/grub.efi %{buildroot}%{sysefidir}/grub.efi
|
2019-02-06 15:44:34 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
# provide compatibility sym-link for previous shim-install and the like
|
2019-02-14 14:12:45 +01:00
|
|
|
install -d %{buildroot}/usr/lib64/efi
|
|
|
|
ln -srf %{buildroot}/%{_datadir}/%{name}/%{grubefiarch}/grub.efi %{buildroot}/usr/lib64/efi/grub.efi
|
|
|
|
cat <<-EoM >%{buildroot}/usr/lib64/efi/DEPRECATED
|
|
|
|
This directory and its contents was moved to %{_datadir}/efi/x86_64.
|
2019-02-06 15:44:34 +01:00
|
|
|
Individual symbolic links are provided for a smooth transition and
|
|
|
|
may vanish at any point in time. Please use the new location!
|
|
|
|
EoM
|
|
|
|
%endif
|
2011-08-26 10:01:42 +02:00
|
|
|
|
2018-12-27 00:21:53 +01:00
|
|
|
%ifarch x86_64 aarch64
|
2013-04-02 11:49:38 +02:00
|
|
|
%if 0%{?suse_version} >= 1230 || 0%{?suse_version} == 1110
|
2019-11-03 11:24:40 +01:00
|
|
|
export BRP_PESIGN_FILES="%{_datadir}/%{name}/%{grubefiarch}/grub.efi"
|
|
|
|
%ifarch x86_64
|
|
|
|
BRP_PESIGN_FILES="${BRP_PESIGN_FILES} %{_datadir}/%{name}/%{grubefiarch}/grub-tpm.efi"
|
|
|
|
%endif
|
2019-02-14 14:12:45 +01:00
|
|
|
install -m 444 grub.der %{buildroot}/%{sysefidir}/
|
2013-04-02 11:49:38 +02:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
cd ..
|
|
|
|
%endif
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%if ! 0%{?only_efi:1}
|
2013-02-21 15:32:16 +01:00
|
|
|
cd build
|
2019-02-14 14:12:45 +01:00
|
|
|
%make_install
|
2017-02-24 02:43:15 +01:00
|
|
|
cd ..
|
2012-11-28 10:34:03 +01:00
|
|
|
%endif
|
2010-03-15 00:45:00 +01:00
|
|
|
|
2019-02-06 15:44:34 +01:00
|
|
|
if [ "%{platform}" = "emu" ]; then
|
|
|
|
# emu-lite is currently broken (and not needed), don't install!
|
2019-02-14 14:12:45 +01:00
|
|
|
rm -f %{buildroot}/%{_bindir}/%{name}-emu-lite
|
2019-02-06 15:44:34 +01:00
|
|
|
elif [ -d build-emu/grub-core ]; then
|
2017-02-24 02:43:15 +01:00
|
|
|
cd build-emu/grub-core
|
2019-02-14 14:12:45 +01:00
|
|
|
install -m 755 grub-emu %{buildroot}/%{_bindir}/%{name}-emu
|
2019-02-06 15:44:34 +01:00
|
|
|
if false; then
|
|
|
|
# this needs to go to '-emu'-package; until that is ready, don't install!
|
2019-02-14 14:12:45 +01:00
|
|
|
install -m 755 grub-emu-lite %{buildroot}/%{_bindir}/%{name}-emu-lite
|
2019-02-06 15:44:34 +01:00
|
|
|
else
|
2019-02-14 14:12:45 +01:00
|
|
|
rm -f %{buildroot}/%{_bindir}/%{name}-emu-lite
|
2019-02-06 15:44:34 +01:00
|
|
|
fi
|
2019-02-14 14:12:45 +01:00
|
|
|
install -m 644 grub-emu.1 %{buildroot}/%{_mandir}/man1/%{name}-emu.1
|
2017-02-24 02:43:15 +01:00
|
|
|
cd ../..
|
|
|
|
fi
|
|
|
|
|
2013-12-02 15:07:50 +01:00
|
|
|
# *.module files are installed with executable bits due to the way grub2 build
|
|
|
|
# system works. Clear executable bits to not confuse find-debuginfo.sh
|
2019-02-14 14:12:45 +01:00
|
|
|
find %{buildroot}/%{_datadir}/%{name} \
|
2013-12-02 15:07:50 +01:00
|
|
|
\( -name '*.module' -o -name '*.image' -o -name '*.exec' \) -print0 | \
|
|
|
|
xargs --no-run-if-empty -0 chmod a-x
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
# Script that makes part of grub.cfg persist across updates
|
2019-02-14 14:12:45 +01:00
|
|
|
install -m 755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/grub.d/
|
2010-03-15 00:45:00 +01:00
|
|
|
|
2012-09-23 21:04:15 +02:00
|
|
|
# Script to generate memtest86+ menu entry
|
2019-02-14 14:12:45 +01:00
|
|
|
install -m 755 %{SOURCE7} %{buildroot}/%{_sysconfdir}/grub.d/
|
2012-09-23 21:04:15 +02:00
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
# Ghost config file
|
2019-02-14 14:12:45 +01:00
|
|
|
install -d %{buildroot}/boot/%{name}
|
|
|
|
touch %{buildroot}/boot/%{name}/grub.cfg
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
|
|
# Remove devel files
|
2019-02-14 14:12:45 +01:00
|
|
|
rm %{buildroot}/%{_datadir}/%{name}/*/*.h
|
2012-11-13 09:53:25 +01:00
|
|
|
%if 0%{?suse_version} >= 1140
|
2019-02-14 14:12:45 +01:00
|
|
|
rm %{buildroot}/%{_datadir}/%{name}/*.h
|
2012-11-13 09:53:25 +01:00
|
|
|
%endif
|
2010-03-15 00:45:00 +01:00
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
# Defaults
|
2019-02-14 14:12:45 +01:00
|
|
|
install -m 644 -D %{SOURCE2} %{buildroot}/%{_sysconfdir}/default/grub
|
|
|
|
install -m 755 -D %{SOURCE6} %{buildroot}/%{_sbindir}/grub2-once
|
|
|
|
install -m 755 -D %{SOURCE12} %{buildroot}/%{_libdir}/snapper/plugins/grub
|
|
|
|
install -m 755 -D %{SOURCE14} %{buildroot}/%{_sysconfdir}/grub.d/80_suse_btrfs_snapshot
|
2015-04-21 10:50:51 +02:00
|
|
|
%if 0%{?has_systemd:1}
|
2019-02-14 14:12:45 +01:00
|
|
|
install -m 644 -D %{SOURCE15} %{buildroot}/%{_unitdir}/grub2-once.service
|
|
|
|
install -m 755 -D %{SOURCE17} %{buildroot}/%{_libdir}/systemd/system-sleep/grub2.sleep
|
2014-10-05 20:27:20 +02:00
|
|
|
%endif
|
2019-02-14 14:12:45 +01:00
|
|
|
install -m 755 -D %{SOURCE18} %{buildroot}/%{_sbindir}/grub2-check-default
|
2014-02-06 09:17:06 +01:00
|
|
|
|
2019-02-14 14:12:45 +01:00
|
|
|
R="%{buildroot}"
|
2015-04-21 10:50:51 +02:00
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%else
|
|
|
|
rm -f $R%{_sysconfdir}/grub.d/20_memtest86+
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch ppc ppc64 ppc64le
|
|
|
|
%else
|
|
|
|
rm -f $R%{_sysconfdir}/grub.d/20_ppc_terminfo
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch s390x
|
|
|
|
mv $R%{_sysconfdir}/{grub.d,default}/zipl2grub.conf.in
|
|
|
|
chmod 600 $R%{_sysconfdir}/default/zipl2grub.conf.in
|
|
|
|
|
|
|
|
%define dracutlibdir %{_prefix}/lib/dracut
|
|
|
|
%define dracutgrubmoddir %{dracutlibdir}/modules.d/99grub2
|
|
|
|
install -m 755 -d $R%{dracutgrubmoddir}
|
|
|
|
for f in module-setup.sh grub2.sh; do
|
2019-02-06 15:44:34 +01:00
|
|
|
mv $R%{_datadir}/%{name}/%{grubarch}/dracut-$f $R%{dracutgrubmoddir}/$f
|
2015-04-21 10:50:51 +02:00
|
|
|
done
|
2019-05-22 10:53:49 +02:00
|
|
|
mv $R%{_datadir}/%{name}/%{grubarch}/dracut-zipl-refresh \
|
|
|
|
$R%{_datadir}/%{name}/zipl-refresh
|
2015-04-21 10:50:51 +02:00
|
|
|
rm -f $R%{_sysconfdir}/grub.d/30_os-prober
|
|
|
|
|
|
|
|
perl -ni -e '
|
|
|
|
sub END() {
|
|
|
|
print "\n# on s390x always:\nGRUB_DISABLE_OS_PROBER=true\n";
|
|
|
|
}
|
|
|
|
if ( s{^#?(GRUB_TERMINAL)=(console|gfxterm)}{$1=console} ) {
|
|
|
|
$_ .= "GRUB_GFXPAYLOAD_LINUX=text\n";
|
|
|
|
}
|
|
|
|
if ( m{^# The resolution used on graphical} ||
|
|
|
|
m{^# # note that you can use only modes} ||
|
|
|
|
m{^# you can see them in real GRUB} ||
|
|
|
|
m{^#?GRUB_GFXMODE=} ) {
|
|
|
|
next;
|
|
|
|
}
|
|
|
|
s{openSUSE}{SUSE Linux Enterprise Server} if (m{^GRUB_DISTRIBUTOR});
|
|
|
|
print;
|
2019-02-14 14:12:45 +01:00
|
|
|
' %{buildroot}/%{_sysconfdir}/default/grub
|
2015-04-21 10:50:51 +02:00
|
|
|
%else
|
|
|
|
%endif
|
|
|
|
|
2012-06-29 06:59:42 +02:00
|
|
|
%find_lang %{name}
|
2011-11-28 12:53:25 +01:00
|
|
|
%fdupes %buildroot%{_bindir}
|
2015-04-21 10:50:51 +02:00
|
|
|
%fdupes %buildroot%{_libdir}
|
2019-02-06 15:44:34 +01:00
|
|
|
%fdupes %buildroot%{_datadir}
|
2010-03-15 00:45:00 +01:00
|
|
|
|
2016-05-25 21:22:00 +02:00
|
|
|
%pre
|
|
|
|
%service_add_pre grub2-once.service
|
|
|
|
|
2010-03-15 00:45:00 +01:00
|
|
|
%post
|
2016-05-25 21:22:00 +02:00
|
|
|
%service_add_post grub2-once.service
|
2011-05-09 10:48:37 +02:00
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%if ! 0%{?only_efi:1}
|
2013-03-22 11:18:12 +01:00
|
|
|
|
|
|
|
%post %{grubarch}
|
2017-01-19 10:38:17 +01:00
|
|
|
%if 0%{?update_bootloader_check_type_reinit_post:1}
|
|
|
|
%update_bootloader_check_type_reinit_post grub2
|
|
|
|
%else
|
2012-09-23 21:04:15 +02:00
|
|
|
# To check by current loader settings
|
|
|
|
if [ -f %{_sysconfdir}/sysconfig/bootloader ]; then
|
|
|
|
. %{_sysconfdir}/sysconfig/bootloader
|
|
|
|
fi
|
|
|
|
|
|
|
|
# If the grub is the current loader, we'll handle the grub2 testing entry
|
|
|
|
if [ "x${LOADER_TYPE}" = "xgrub" ]; then
|
|
|
|
|
|
|
|
exec >/dev/null 2>&1
|
|
|
|
|
|
|
|
# check if entry for grub2's core.img exists in the config
|
|
|
|
# if yes, we will correct obsoleted path and update grub2 stuff and config to make it work
|
|
|
|
# if no, do nothing
|
|
|
|
if [ -f /boot/grub/menu.lst ]; then
|
|
|
|
|
|
|
|
# If grub config contains obsolete core.img path, remove and use the new one
|
|
|
|
if /usr/bin/grep -l "^\s*kernel\s*.*/boot/%{name}/core.img" /boot/grub/menu.lst; then
|
|
|
|
/sbin/update-bootloader --remove --image /boot/%{name}/core.img || true
|
|
|
|
/sbin/update-bootloader --add --image /boot/%{name}/i386-pc/core.img --name "GNU GRUB 2" || true
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Install grub2 stuff and config to make the grub2 testing entry to work with updated version
|
|
|
|
if /usr/bin/grep -l "^\s*kernel\s*.*/boot/%{name}/i386-pc/core.img" /boot/grub/menu.lst; then
|
|
|
|
# Determine the partition with /boot
|
2014-11-24 11:14:33 +01:00
|
|
|
BOOT_PARTITION=$(df -h /boot | sed -n '2s/[[:blank:]].*//p')
|
2012-09-23 21:04:15 +02:00
|
|
|
# Generate core.img, but don't let it be installed in boot sector
|
2014-01-10 21:19:21 +01:00
|
|
|
%{name}-install --no-bootsector $BOOT_PARTITION || true
|
2012-09-23 21:04:15 +02:00
|
|
|
# Create a working grub2 config, otherwise that entry is un-bootable
|
|
|
|
/usr/sbin/grub2-mkconfig -o /boot/%{name}/grub.cfg
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
elif [ "x${LOADER_TYPE}" = "xgrub2" ]; then
|
|
|
|
|
2013-09-13 14:43:46 +02:00
|
|
|
# It's enought to call update-bootloader to install grub2 and update it's config
|
|
|
|
# Use new --reinit, if not available use --refresh
|
|
|
|
# --reinit: install and update bootloader config
|
|
|
|
# --refresh: update bootloader config
|
|
|
|
/sbin/update-bootloader --reinit 2>&1 | grep -q 'Unknown option: reinit' &&
|
2012-09-23 21:04:15 +02:00
|
|
|
/sbin/update-bootloader --refresh || true
|
|
|
|
fi
|
2012-11-28 10:34:03 +01:00
|
|
|
%endif
|
|
|
|
|
2017-01-19 10:38:17 +01:00
|
|
|
%posttrans %{grubarch}
|
|
|
|
%{?update_bootloader_posttrans}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
2011-11-28 12:53:25 +01:00
|
|
|
%ifarch %{efi}
|
2012-10-26 17:06:09 +02:00
|
|
|
|
2013-03-22 11:18:12 +01:00
|
|
|
%post %{grubefiarch}
|
2017-01-19 10:38:17 +01:00
|
|
|
%if 0%{?update_bootloader_check_type_reinit_post:1}
|
|
|
|
%update_bootloader_check_type_reinit_post grub2-efi
|
|
|
|
%else
|
2013-03-22 11:18:12 +01:00
|
|
|
# To check by current loader settings
|
|
|
|
if [ -f %{_sysconfdir}/sysconfig/bootloader ]; then
|
|
|
|
. %{_sysconfdir}/sysconfig/bootloader
|
2012-09-23 21:04:15 +02:00
|
|
|
fi
|
2012-10-26 17:06:09 +02:00
|
|
|
|
2013-03-22 11:18:12 +01:00
|
|
|
if [ "x${LOADER_TYPE}" = "xgrub2-efi" ]; then
|
2012-10-26 17:06:09 +02:00
|
|
|
|
2013-03-22 11:18:12 +01:00
|
|
|
if [ -d /boot/%{name}-efi ]; then
|
|
|
|
# Migrate settings to standard prefix /boot/grub2
|
|
|
|
for i in custom.cfg grubenv; do
|
|
|
|
[ -f /boot/%{name}-efi/$i ] && cp -a /boot/%{name}-efi/$i /boot/%{name} || :
|
|
|
|
done
|
2012-10-26 17:06:09 +02:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2013-09-13 14:43:46 +02:00
|
|
|
# It's enough to call update-bootloader to install grub2 and update it's config
|
|
|
|
# Use new --reinit, if not available use --refresh
|
|
|
|
# --reinit: install and update bootloader config
|
|
|
|
# --refresh: update bootloader config
|
|
|
|
/sbin/update-bootloader --reinit 2>&1 | grep -q 'Unknown option: reinit' &&
|
2013-03-22 11:18:12 +01:00
|
|
|
/sbin/update-bootloader --refresh || true
|
|
|
|
fi
|
2012-09-23 21:04:15 +02:00
|
|
|
|
2013-03-22 11:18:12 +01:00
|
|
|
if [ -d /boot/%{name}-efi ]; then
|
|
|
|
mv /boot/%{name}-efi /boot/%{name}-efi.rpmsave
|
2012-09-23 21:04:15 +02:00
|
|
|
fi
|
2013-03-22 11:18:12 +01:00
|
|
|
|
2012-10-26 17:06:09 +02:00
|
|
|
exit 0
|
2011-11-28 12:53:25 +01:00
|
|
|
%endif
|
2011-08-26 10:01:42 +02:00
|
|
|
|
2017-01-19 10:38:17 +01:00
|
|
|
%posttrans %{grubefiarch}
|
|
|
|
%{?update_bootloader_posttrans}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
%preun
|
2016-05-25 21:22:00 +02:00
|
|
|
%service_del_preun grub2-once.service
|
2017-01-19 10:38:17 +01:00
|
|
|
# We did not add core.img to grub1 menu.lst in new update-bootloader macro as what
|
2019-02-06 15:44:34 +01:00
|
|
|
# the old %%post ever did, then the %%preun counterpart which removed the added core.img
|
|
|
|
# entry from old %%post can be skipped entirely if having new macro in use.
|
2017-01-19 10:38:17 +01:00
|
|
|
%if ! 0%{?update_bootloader_posttrans:1}%{?only_efi:1}
|
2020-03-25 23:43:37 +01:00
|
|
|
if [ $1 = 0 ]; then
|
2012-09-23 21:04:15 +02:00
|
|
|
# To check by current loader settings
|
|
|
|
if [ -f %{_sysconfdir}/sysconfig/bootloader ]; then
|
|
|
|
. %{_sysconfdir}/sysconfig/bootloader
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "x${LOADER_TYPE}" = "xgrub" ]; then
|
|
|
|
|
|
|
|
exec >/dev/null 2>&1
|
|
|
|
|
|
|
|
if [ -f /boot/grub/menu.lst ]; then
|
|
|
|
|
|
|
|
# Remove grub2 testing entry in menu.lst if has any
|
|
|
|
for i in /boot/%{name}/core.img /boot/%{name}/i386-pc/core.img; do
|
|
|
|
if /usr/bin/grep -l "^\s*kernel\s*.*$i" /boot/grub/menu.lst; then
|
|
|
|
/sbin/update-bootloader --remove --image "$i" || true
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Cleanup config, to not confuse some tools determining bootloader in use
|
|
|
|
rm -f /boot/%{name}/grub.cfg
|
|
|
|
|
|
|
|
# Cleanup installed files
|
|
|
|
# Unless grub2 provides grub2-uninstall, we don't remove any file because
|
|
|
|
# we have no idea what's been installed. (And a blind remove is dangerous
|
|
|
|
# to remove user's or other package's file accidently ..)
|
|
|
|
fi
|
2011-05-09 10:48:37 +02:00
|
|
|
fi
|
2020-03-25 23:43:37 +01:00
|
|
|
%endif
|
2011-05-09 10:48:37 +02:00
|
|
|
|
2016-05-25 21:22:00 +02:00
|
|
|
%postun
|
|
|
|
%service_del_postun grub2-once.service
|
|
|
|
|
2017-02-24 02:43:15 +01:00
|
|
|
%files -f %{name}.lang
|
2010-02-18 15:10:48 +01:00
|
|
|
%defattr(-,root,root,-)
|
2019-03-24 14:55:49 +01:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
%doc COPYING
|
|
|
|
%else
|
2018-05-29 16:45:55 +02:00
|
|
|
%license COPYING
|
2019-03-24 14:55:49 +01:00
|
|
|
%endif
|
2018-05-29 16:45:55 +02:00
|
|
|
%doc NEWS README
|
2013-02-21 15:32:16 +01:00
|
|
|
%doc THANKS TODO ChangeLog
|
2014-01-17 11:03:50 +01:00
|
|
|
%doc docs/autoiso.cfg docs/osdetect.cfg
|
2015-04-21 10:50:51 +02:00
|
|
|
%ifarch s390x
|
|
|
|
%doc README.ibm3215
|
|
|
|
%endif
|
2012-06-29 06:59:42 +02:00
|
|
|
%dir /boot/%{name}
|
|
|
|
%ghost /boot/%{name}/grub.cfg
|
2011-05-09 10:48:37 +02:00
|
|
|
%{_sysconfdir}/bash_completion.d/grub
|
2012-03-29 13:57:50 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/default/grub
|
2010-02-18 15:10:48 +01:00
|
|
|
%dir %{_sysconfdir}/grub.d
|
|
|
|
%{_sysconfdir}/grub.d/README
|
2018-07-16 10:41:34 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/00_header
|
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/10_linux
|
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/20_linux_xen
|
2018-07-12 09:17:11 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/40_custom
|
2018-07-16 10:41:34 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/41_custom
|
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/90_persistent
|
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/95_textmode
|
2019-02-06 15:44:34 +01:00
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/20_memtest86+
|
|
|
|
%endif
|
|
|
|
%ifarch ppc ppc64 ppc64le
|
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/20_ppc_terminfo
|
|
|
|
%endif
|
|
|
|
%ifarch s390x
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/zipl2grub.conf.in
|
|
|
|
%{dracutlibdir}
|
|
|
|
%{_sbindir}/%{name}-zipl-setup
|
2019-05-22 10:53:49 +02:00
|
|
|
%{_datadir}/%{name}/zipl-refresh
|
2019-02-06 15:44:34 +01:00
|
|
|
%endif
|
2015-04-21 10:50:51 +02:00
|
|
|
%{_sbindir}/%{name}-install
|
2012-06-29 06:59:42 +02:00
|
|
|
%{_sbindir}/%{name}-mkconfig
|
2012-08-31 09:28:14 +02:00
|
|
|
%{_sbindir}/%{name}-once
|
2012-06-29 06:59:42 +02:00
|
|
|
%{_sbindir}/%{name}-probe
|
|
|
|
%{_sbindir}/%{name}-reboot
|
|
|
|
%{_sbindir}/%{name}-set-default
|
2018-02-02 22:19:58 +01:00
|
|
|
%{_sbindir}/%{name}-check-default
|
2012-06-29 06:59:42 +02:00
|
|
|
%{_bindir}/%{name}-editenv
|
2014-01-10 21:19:21 +01:00
|
|
|
%{_bindir}/%{name}-file
|
2012-06-29 06:59:42 +02:00
|
|
|
%{_bindir}/%{name}-fstest
|
|
|
|
%{_bindir}/%{name}-kbdcomp
|
|
|
|
%{_bindir}/%{name}-menulst2cfg
|
|
|
|
%{_bindir}/%{name}-mkfont
|
|
|
|
%{_bindir}/%{name}-mkimage
|
|
|
|
%{_bindir}/%{name}-mklayout
|
2013-06-26 20:19:00 +02:00
|
|
|
%{_bindir}/%{name}-mknetdir
|
2012-06-29 06:59:42 +02:00
|
|
|
%{_bindir}/%{name}-mkpasswd-pbkdf2
|
|
|
|
%{_bindir}/%{name}-mkrelpath
|
|
|
|
%{_bindir}/%{name}-mkrescue
|
|
|
|
%{_bindir}/%{name}-mkstandalone
|
2013-06-26 20:19:00 +02:00
|
|
|
%{_bindir}/%{name}-render-label
|
2012-06-29 06:59:42 +02:00
|
|
|
%{_bindir}/%{name}-script-check
|
2017-02-24 02:43:15 +01:00
|
|
|
%{_bindir}/%{name}-syslinux2cfg
|
2015-04-21 10:50:51 +02:00
|
|
|
%if 0%{?has_systemd:1}
|
|
|
|
%{_unitdir}/grub2-once.service
|
2014-01-30 11:23:54 +01:00
|
|
|
%endif
|
2012-06-29 06:59:42 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
2014-01-17 11:03:50 +01:00
|
|
|
%dir %{_datadir}/%{name}/themes
|
2012-11-13 09:53:25 +01:00
|
|
|
%if 0%{?suse_version} >= 1140
|
2012-06-29 06:59:42 +02:00
|
|
|
%{_datadir}/%{name}/*.pf2
|
2012-11-13 09:53:25 +01:00
|
|
|
%endif
|
2012-06-29 06:59:42 +02:00
|
|
|
%{_datadir}/%{name}/grub-mkconfig_lib
|
2011-05-09 10:48:37 +02:00
|
|
|
%{_infodir}/grub-dev.info*
|
|
|
|
%{_infodir}/%{name}.info*
|
2013-04-20 17:42:26 +02:00
|
|
|
%{_mandir}/man1/%{name}-editenv.1.*
|
2014-01-10 21:19:21 +01:00
|
|
|
%{_mandir}/man1/%{name}-file.1.*
|
2013-04-20 17:42:26 +02:00
|
|
|
%{_mandir}/man1/%{name}-fstest.1.*
|
|
|
|
%{_mandir}/man1/%{name}-kbdcomp.1.*
|
|
|
|
%{_mandir}/man1/%{name}-menulst2cfg.1.*
|
|
|
|
%{_mandir}/man1/%{name}-mkfont.1.*
|
|
|
|
%{_mandir}/man1/%{name}-mkimage.1.*
|
|
|
|
%{_mandir}/man1/%{name}-mklayout.1.*
|
2013-06-26 20:19:00 +02:00
|
|
|
%{_mandir}/man1/%{name}-mknetdir.1.*
|
2013-04-20 17:42:26 +02:00
|
|
|
%{_mandir}/man1/%{name}-mkpasswd-pbkdf2.1.*
|
|
|
|
%{_mandir}/man1/%{name}-mkrelpath.1.*
|
|
|
|
%{_mandir}/man1/%{name}-mkrescue.1.*
|
|
|
|
%{_mandir}/man1/%{name}-mkstandalone.1.*
|
2013-06-26 20:19:00 +02:00
|
|
|
%{_mandir}/man1/%{name}-render-label.1.*
|
2013-04-20 17:42:26 +02:00
|
|
|
%{_mandir}/man1/%{name}-script-check.1.*
|
2017-02-24 02:43:15 +01:00
|
|
|
%{_mandir}/man1/%{name}-syslinux2cfg.1.*
|
2015-04-21 10:50:51 +02:00
|
|
|
%{_mandir}/man8/%{name}-install.8.*
|
2013-04-20 17:42:26 +02:00
|
|
|
%{_mandir}/man8/%{name}-mkconfig.8.*
|
|
|
|
%{_mandir}/man8/%{name}-probe.8.*
|
|
|
|
%{_mandir}/man8/%{name}-reboot.8.*
|
|
|
|
%{_mandir}/man8/%{name}-set-default.8.*
|
2017-02-24 02:43:15 +01:00
|
|
|
%if %{emu}
|
2019-02-06 15:44:34 +01:00
|
|
|
%{_bindir}/%{name}-emu
|
2014-01-30 11:23:54 +01:00
|
|
|
%{_mandir}/man1/%{name}-emu.1.*
|
2017-02-24 02:43:15 +01:00
|
|
|
%endif
|
|
|
|
%ifnarch s390x
|
2018-07-16 10:41:34 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/30_os-prober
|
2017-02-24 02:43:15 +01:00
|
|
|
%{_bindir}/%{name}-glue-efi
|
2015-04-21 10:50:51 +02:00
|
|
|
%{_bindir}/%{name}-mount
|
|
|
|
%{_sbindir}/%{name}-bios-setup
|
|
|
|
%{_sbindir}/%{name}-macbless
|
|
|
|
%{_sbindir}/%{name}-ofpathname
|
|
|
|
%{_sbindir}/%{name}-sparc64-setup
|
2017-02-24 02:43:15 +01:00
|
|
|
%{_mandir}/man1/%{name}-glue-efi.1.*
|
2015-04-21 10:50:51 +02:00
|
|
|
%{_mandir}/man1/%{name}-mount.1.*
|
|
|
|
%{_mandir}/man8/%{name}-bios-setup.8.*
|
2016-03-07 13:26:18 +01:00
|
|
|
%{_mandir}/man8/%{name}-macbless.8.*
|
2015-04-21 10:50:51 +02:00
|
|
|
%{_mandir}/man8/%{name}-ofpathname.8.*
|
|
|
|
%{_mandir}/man8/%{name}-sparc64-setup.8.*
|
2014-01-30 11:23:54 +01:00
|
|
|
%endif
|
2015-08-26 11:54:23 +02:00
|
|
|
|
2014-01-17 11:03:50 +01:00
|
|
|
%files branding-upstream
|
2015-04-21 10:50:51 +02:00
|
|
|
%defattr(-,root,root,-)
|
2014-01-17 11:03:50 +01:00
|
|
|
%{_datadir}/%{name}/themes/starfield
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%if ! 0%{?only_efi:1}
|
2013-02-21 15:32:16 +01:00
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%files %{grubarch}
|
|
|
|
%defattr(-,root,root,-)
|
2019-02-06 15:44:34 +01:00
|
|
|
%dir %{_datadir}/%{name}/%{grubarch}
|
2014-02-06 09:17:06 +01:00
|
|
|
%ifarch ppc ppc64 ppc64le
|
2019-02-06 15:44:34 +01:00
|
|
|
# This is intentionally "grub.chrp" and not "%%{name}.chrp"
|
|
|
|
%{_datadir}/%{name}/%{grubarch}/grub.chrp
|
|
|
|
%{_datadir}/%{name}/%{grubarch}/bootinfo.txt
|
2013-06-26 20:19:00 +02:00
|
|
|
%endif
|
2014-12-05 21:03:44 +01:00
|
|
|
%ifnarch ppc ppc64 ppc64le s390x %{arm}
|
2019-02-06 15:44:34 +01:00
|
|
|
%{_datadir}/%{name}/%{grubarch}/*.image
|
2012-11-28 10:34:03 +01:00
|
|
|
%endif
|
2019-02-06 15:44:34 +01:00
|
|
|
%{_datadir}/%{name}/%{grubarch}/*.img
|
|
|
|
%{_datadir}/%{name}/%{grubarch}/*.lst
|
|
|
|
%{_datadir}/%{name}/%{grubarch}/*.mod
|
2012-11-28 10:34:03 +01:00
|
|
|
%ifarch x86_64
|
2019-02-06 15:44:34 +01:00
|
|
|
%{_datadir}/%{name}/%{grubarch}/efiemu*.o
|
2012-11-28 10:34:03 +01:00
|
|
|
%endif
|
2019-02-06 15:44:34 +01:00
|
|
|
%{_datadir}/%{name}/%{grubarch}/kernel.exec
|
|
|
|
%{_datadir}/%{name}/%{grubarch}/modinfo.sh
|
2020-03-25 23:43:37 +01:00
|
|
|
|
|
|
|
%files %{grubarch}-debug
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/%{name}/%{grubarch}/gdb_grub
|
|
|
|
%{_datadir}/%{name}/%{grubarch}/gmodule.pl
|
|
|
|
%{_datadir}/%{name}/%{grubarch}/*.module
|
|
|
|
|
2015-04-21 10:50:51 +02:00
|
|
|
%endif
|
2011-08-26 10:01:42 +02:00
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%ifarch %{efi}
|
2013-02-21 15:32:16 +01:00
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
%files %{grubefiarch}
|
|
|
|
%defattr(-,root,root,-)
|
2019-02-06 15:44:34 +01:00
|
|
|
%dir %{_datadir}/%{name}/%{grubefiarch}
|
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/grub.efi
|
2019-11-03 11:24:40 +01:00
|
|
|
%ifarch x86_64
|
2019-02-06 15:44:34 +01:00
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/grub-tpm.efi
|
2019-11-03 11:24:40 +01:00
|
|
|
%endif
|
2019-02-06 15:44:34 +01:00
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/*.img
|
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/*.lst
|
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/*.mod
|
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/kernel.exec
|
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/modinfo.sh
|
|
|
|
%dir %{sysefibasedir}
|
2013-01-31 14:48:08 +01:00
|
|
|
%dir %{sysefidir}
|
|
|
|
%{sysefidir}/grub.efi
|
2019-02-06 15:44:34 +01:00
|
|
|
%if 0%{?suse_version} < 1600
|
|
|
|
%ifarch x86_64
|
|
|
|
# provide compatibility sym-link for previous shim-install and kiwi
|
|
|
|
%dir /usr/lib64/efi
|
|
|
|
/usr/lib64/efi/DEPRECATED
|
|
|
|
/usr/lib64/efi/grub.efi
|
|
|
|
%endif
|
|
|
|
%endif
|
2013-04-02 11:49:38 +02:00
|
|
|
|
2018-12-27 00:21:53 +01:00
|
|
|
%ifarch x86_64 aarch64
|
2013-04-02 11:49:38 +02:00
|
|
|
%if 0%{?suse_version} >= 1230 || 0%{?suse_version} == 1110
|
|
|
|
%{sysefidir}/grub.der
|
|
|
|
%endif
|
|
|
|
%endif
|
2020-03-25 23:43:37 +01:00
|
|
|
|
|
|
|
%files %{grubefiarch}-debug
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/gdb_grub
|
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/gmodule.pl
|
|
|
|
%{_datadir}/%{name}/%{grubefiarch}/*.module
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
%endif
|
2013-01-08 13:44:12 +01:00
|
|
|
|
2014-02-11 10:55:19 +01:00
|
|
|
%files snapper-plugin
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_libdir}/snapper
|
|
|
|
%dir %{_libdir}/snapper/plugins
|
2018-07-16 10:41:34 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/grub.d/80_suse_btrfs_snapshot
|
2014-02-11 10:55:19 +01:00
|
|
|
%{_libdir}/snapper/plugins/grub
|
|
|
|
|
2015-02-20 13:50:50 +01:00
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%files %{grubxenarch}
|
2019-02-17 12:18:40 +01:00
|
|
|
%defattr(-,root,root,-)
|
2019-02-06 15:44:34 +01:00
|
|
|
%dir %{_datadir}/%{name}/%{grubxenarch}
|
|
|
|
%{_datadir}/%{name}/%{grubxenarch}/*
|
2019-02-17 12:18:40 +01:00
|
|
|
# provide compatibility sym-link for VM definitions pointing to old location
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/%{grubxenarch}
|
2014-04-12 21:28:53 +02:00
|
|
|
%endif
|
|
|
|
|
2015-08-28 08:25:56 +02:00
|
|
|
%if 0%{?has_systemd:1}
|
|
|
|
%files systemd-sleep-plugin
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_libdir}/systemd/system-sleep
|
|
|
|
%{_libdir}/systemd/system-sleep/grub2.sleep
|
|
|
|
%endif
|
|
|
|
|
2013-01-08 13:44:12 +01:00
|
|
|
%changelog
|