forked from pool/grub2
Accepting request 221073 from home:michael-chang:branches:Base:System
- add grub2-snapper-plugin.sh (fate#316232) * grub2's snapper plugin for advanced btrfs snapshot menu management * package as grub2-snapper-plugin.noarch - refresh 0002-script-create-menus-for-btrfs-snapshot.patch * when booting btrfs snapshots disabled, deleting snapshot master config if it's not customized OBS-URL: https://build.opensuse.org/request/show/221073 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=73
This commit is contained in:
19
grub2.spec
19
grub2.spec
@@ -113,6 +113,7 @@ Source6: grub2-once
|
||||
Source7: 20_memtest86+
|
||||
Source10: openSUSE-UEFI-CA-Certificate.crt
|
||||
Source11: SLES-UEFI-CA-Certificate.crt
|
||||
Source12: grub2-snapper-plugin.sh
|
||||
Source1000: PATCH_POLICY
|
||||
Patch1: rename-grub-info-file-to-grub2.patch
|
||||
Patch2: grub2-linux.patch
|
||||
@@ -233,6 +234,17 @@ provides support for EFI systems.
|
||||
|
||||
%endif
|
||||
|
||||
%package snapper-plugin
|
||||
|
||||
Summary: Grub2's snapper plugin
|
||||
Group: System/Fhs
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: libxml2-tools
|
||||
BuildArch: noarch
|
||||
|
||||
%description snapper-plugin
|
||||
Grub2's snapper plugin for advanced btrfs snapshot boot menu management
|
||||
|
||||
%prep
|
||||
# We create (if we build for efi) two copies of the sources in the Builddir
|
||||
%setup -q -n grub-%{version} -a 5
|
||||
@@ -458,6 +470,7 @@ rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.h
|
||||
# Defaults
|
||||
install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/grub
|
||||
install -m 755 -D %{SOURCE6} $RPM_BUILD_ROOT%{_sbindir}/grub2-once
|
||||
install -m 755 -D %{SOURCE12} $RPM_BUILD_ROOT%{_libdir}/snapper/plugins/grub
|
||||
|
||||
%find_lang %{name}
|
||||
%fdupes %buildroot%{_bindir}
|
||||
@@ -726,4 +739,10 @@ fi
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files snapper-plugin
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/snapper
|
||||
%dir %{_libdir}/snapper/plugins
|
||||
%{_libdir}/snapper/plugins/grub
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user