Accepting request 196392 from Base:System

- update-bootloader refresh cleanup and introduce reinit
- better way to know kerenl device of physical drive
- fix grub2-set-default error during installation
- remove floppy in device map
- clean up unused functions and variables
- use grub2-probe to get device map
- unify indention
- require coreutils for %post
- 0.709

OBS-URL: https://build.opensuse.org/request/show/196392
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Bootloader?expand=0&rev=130
This commit is contained in:
Stephan Kulow 2013-08-27 13:09:40 +00:00 committed by Git OBS Bridge
commit d1fe49dc38
5 changed files with 17 additions and 28 deletions

View File

@ -1,22 +0,0 @@
Index: perl-Bootloader-0.708/src/Core/GRUB2.pm
===================================================================
--- perl-Bootloader-0.708.orig/src/Core/GRUB2.pm
+++ perl-Bootloader-0.708/src/Core/GRUB2.pm
@@ -333,12 +333,15 @@ sub new
my $self = shift;
my $ref = shift;
my $old = shift;
+ my $arch = `uname --hardware-platform`;
+ my $target;
my $loader = $self->SUPER::new($ref, $old);
bless($loader);
- # Do we support any architecture besides x86?
- my $target = "i386-pc";
+ #Set target based on architecture (ppc or x86)
+ $target = "i386-pc" if $arch =~ /(i386|x86_64)/;
+ $target = "powerpc-ieee1275" if $arch =~ /(ppc|ppc64)/;
$loader->{'target'} = $target;
$loader->milestone("Created GRUB2 instance for target $target");

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:367c8bb7b507ca8c586c569637eaca47b0eda445dcd7b4caa77f90446337b3fc
size 147976

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59e21aefad4f1ef357e14de5aeb05a749cdf5e82ae78c2ebdb69903d8a00997a
size 148708

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Aug 26 14:29:03 CEST 2013 - snwint@suse.de
- update-bootloader refresh cleanup and introduce reinit
- better way to know kerenl device of physical drive
- fix grub2-set-default error during installation
- remove floppy in device map
- clean up unused functions and variables
- use grub2-probe to get device map
- unify indention
- require coreutils for %post
- 0.709
-------------------------------------------------------------------
Tue Jul 2 08:29:00 UTC 2013 - dvaleev@suse.com

View File

@ -17,7 +17,7 @@
Name: perl-Bootloader
Version: 0.708
Version: 0.709
Release: 0
Requires: coreutils
Requires: e2fsprogs
@ -27,7 +27,6 @@ Summary: Library for Configuring Boot Loaders
License: GPL-2.0+
Group: System/Boot
Source: perl-Bootloader-%{version}.tar.xz
Patch0: grub2-on-powerpc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
Conflicts: multipath-tools < 0.4.8-40.25.1
@ -47,7 +46,6 @@ Authors:
%prep
%setup -q
%patch0 -p1
%build