From 7c419b815b57574150081f0e99879fbf083c6286 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 19 Oct 2011 13:41:11 -0700 Subject: [PATCH] mark /etc/default/grub as config(noreplace) --- grub2.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/grub2.spec b/grub2.spec index 3d97cf31..7bc2c68d 100644 --- a/grub2.spec +++ b/grub2.spec @@ -18,7 +18,7 @@ Name: grub2 Epoch: 1 Version: 1.99 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Bootloader with support for Linux, Multiboot and more Group: System Environment/Base @@ -292,7 +292,7 @@ fi %config %{_sysconfdir}/grub.d/??_* %{_sysconfdir}/grub.d/README %{_sysconfdir}/%{name}.cfg -%{_sysconfdir}/default/grub +%config(noreplace) %{_sysconfdir}/default/grub %dir /boot/%{name} # Actually, this is replaced by update-grub from scriptlets, # but it takes care of modified persistent part @@ -341,7 +341,7 @@ fi %config %{_sysconfdir}/grub.d/??_* %{_sysconfdir}/grub.d/README %{_sysconfdir}/grub2-efi.cfg -%{_sysconfdir}/default/grub +%config(noreplace) %{_sysconfdir}/default/grub %dir /boot/grub2-efi # Actually, this is replaced by update-grub from scriptlets, # but it takes care of modified persistent part @@ -354,6 +354,10 @@ fi %endif %changelog +* Wed Oct 19 2011 Adam Williamson - 1.99-10 +- /etc/default/grub is explicitly intended for user customization, so + mark it as config(noreplace) + * Tue Oct 11 2011 Peter Jones - 1.99-9 - grub has an epoch, so we need that expressed in the obsolete as well. Today isn't my day.