SHA256
1
0
forked from pool/grub2

Accepting request 158628 from home:arvidjaar:branches:Base:System

Clean up spec

1. update-bootloader must be called after both user space and grub2 modules are updated. Otherwise we risk to get stale modules or incompatible configuration. So move it into respective grub2-i386-pc/grub2-arch-efi; use Requires(post) to force packages installation order.

2. Split migration support into grub2-efi. Simplify it, only grubenv and custom.cfg need migration.

3. Require minimal perl-Bootloader version that understands /boot/grub2 on EFI.

While on it, replace all obsolete PreReq with Requires/Requies(post).

This leaves all migration code under 12.2/12.3 condition, so once we are past this it will disappear.

Tested on updated from 12.2.

OBS-URL: https://build.opensuse.org/request/show/158628
OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=26
This commit is contained in:
2013-03-12 09:56:29 +00:00
committed by Git OBS Bridge
parent 4a27c23e24
commit 5932ec5ef7
2 changed files with 51 additions and 21 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Mar 11 16:02:26 UTC 2013 - arvidjaar@gmail.com
- move post scripts into corresponding subpackages to ensure they are
run after updated binaries are installed. Currently it may happen
that update-bootlader picks up old binaries.
- move requires for perl-Bootloader to target subpackages. Make sure
efi requires minimal version that supports /boot/grub2.
- add requires(post) to force order of installation: grub2 => grub2-arch
=> grub2-efi
- split efi post in two parts. One that updates configuration and is part
of grub2-efiarch and second that migrates settings and is part of
grub2-efi. Only custom.cfg and grubenv may need migration. device.map
is not relevant for EFI and new grub.cfg had been created at this point.
-------------------------------------------------------------------
Mon Mar 11 06:52:58 UTC 2013 - mchang@suse.com