Comment # 18 on bug 904422 from
Index: openSUSE-release.spec
===================================================================
--- openSUSE-release.spec       (revision 44057bc6382ef2a440c79f01d7a9b018)
+++ openSUSE-release.spec       (working copy)
@@ -93,6 +93,19 @@
 # this is a base product, create symlink
 ln -s openSUSE.prod $RPM_BUILD_ROOT/etc/products.d/baseproduct

+%post
+# Upgrade path - if /etc/default/grub contains any of the DISTRIBUTOR= tags
+# we ever put, replace it with "", which means grub will use /etc/os-release
to make something up
+DISTRIBUTOR=$(awk -F= '/^GRUB_DISTRIBUTOR/ {print $2}' /etc/default/grub)
+case $DISTRIBUTOR in
+       "openSUSE" | \
+       "openSUSE 13.1" | \
+       "openSUSE 13.2")
+               # replace GRUB_DISTRIBUTOR in /etc/default/grub with ""
+               sed -i "s/^GRUB_DISTRIBUTOR=.*/GRUB_DISTRIBUTOR=/"
/etc/default/grub
+               ;;
+esac
+
 %files
 %defattr(644,root,root,755)
 %config /etc/SuSE-release


You are receiving this mail because: