On Mon, Oct 29, 2012 at 10:36:36AM +0200, Elan Ruusamäe wrote:
> that would do, if you want to upgrade grub automatically on upgrade,
> maybe just leave sysadmin deal with it when he has time?
Yes, that is the right way.
> as if your system boots, you don't usually want to touch it. grub maybe
On Mon, Oct 29, 2012 at 10:32:53AM +0200, Elan Ruusamäe wrote:
> >> >/sbin/grub-install '(hd0)' || :
> > And I don't like it.
> would you run git blame first on it?
>
> https://github.com/pld-linux/grub2/blame/master/grub2.spec
> https://github.com/pld-linux/grub2/commit/9290450558f93b57e0319a7c13
On Mon, Oct 29, 2012 at 10:36:36 +0200, Elan Ruusamäe wrote:
> version in boot partition, is not exactly a disaster, or is it? (i
> assume after grub-install i can rm -rf /boot and system is still
> bootable (except menu config is missing :) ? ))
Until you overwrite reclaimed space;)
--
Tomas
On 28.10.2012 23:03, Jacek Konieczny wrote:
Any idea what to use instead?
Maybe an option in /etc/sysconfig/grub?
Would this be ok:
in /etc/sysconfig/grub:
GRUB_INSTALL=/sbin/grub-install '(hd0)'
that would do, if you want to upgrade grub automatically on upgrade,
maybe just leave sysadmin dea
On 28.10.2012 23:03, Jacek Konieczny wrote:
There is this piece of code in grub2.spec:
># Note this on version upgrade
>%triggerpostun -- %{name} < %{version}-0
# don't do anything on --downgrade
>if [ $1 -le 1 ]; then
> exit 0
>fi
>echo "Grub was upgraded, trying to setup it to boot se
There is this piece of code in grub2.spec:
> %triggerpostun -- %{name} < %{version}-0
> if [ $1 -le 1 ]; then
> exit 0
> fi
> echo "Grub was upgraded, trying to setup it to boot sector"
> /sbin/grub-install '(hd0)' || :
And I don't like it.
Having grub installed does not mean one wants i