GRUB2 upgrade trigger

Elan Ruusamäe glen at pld-linux.org
Mon Oct 29 09:32:53 CET 2012


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 sector"
>> >/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/9290450558f93b57e0319a7c13c360b693564b90

it's there because files on /boot got upgraded via rpm, and that 
confuses grub. but this is no longer the case, you removed this part

-- 
glen



More information about the pld-devel-en mailing list