From 74165feb3c660c2f4c6adf76f2f3787e173461c6a6270d71ececcd398b64780a Mon Sep 17 00:00:00 2001 From: Raymund Will Date: Thu, 14 Feb 2019 15:38:58 +0000 Subject: [PATCH] Accepting request 674894 from home:michael-chang:boo:1123942 - Create compatibility sym-link of grub.xen in the old location to which old VM definition is pointing (boo#1123942) OBS-URL: https://build.opensuse.org/request/show/674894 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=326 --- grub2.changes | 7 ++++++- grub2.spec | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/grub2.changes b/grub2.changes index f448844..34b30bc 100644 --- a/grub2.changes +++ b/grub2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 12 08:57:03 UTC 2019 - mchang@suse.com + +- Create compatibility sym-link of grub.xen in the old location to which + old VM definition is pointing (boo#1123942) + ------------------------------------------------------------------- Mon Jan 28 14:12:05 UTC 2019 - Guillaume GARDET @@ -30,7 +36,6 @@ Wed Jan 23 10:44:09 UTC 2019 - rw@suse.com * grub2-efi-xen-chainload.patch (bsc#1122563) * grub2-efi-xen-removable.patch (refresh) - ------------------------------------------------------------------- Thu Dec 20 09:21:27 UTC 2018 - mchang@suse.com diff --git a/grub2.spec b/grub2.spec index 3bd8e2d..1a38d94 100644 --- a/grub2.spec +++ b/grub2.spec @@ -807,6 +807,9 @@ cd .. cd build-xen %make_install install -m 644 grub.xen %{buildroot}/%{_datadir}/%{name}/%{grubxenarch}/. +# 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 cd .. %endif @@ -1273,6 +1276,10 @@ fi %files %{grubxenarch} %dir %{_datadir}/%{name}/%{grubxenarch} %{_datadir}/%{name}/%{grubxenarch}/* +# provide compatibility sym-link for VM definitions pointing to old location +%dir %{_libdir}/%{name} +%dir %{_libdir}/%{name}/%{grubxenarch} +%{_libdir}/%{name}/%{grubxenarch}/grub.xen %endif %if 0%{?has_systemd:1}