http://bugzilla.opensuse.org/show_bug.cgi?id=904422
http://bugzilla.opensuse.org/show_bug.cgi?id=904422#c18
--- Comment #18 from Dominique Leuenberger ---
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:
You are on the CC list for the bug.