Skip to content

Commit

Permalink
[backend] support firmware settings for UEFI boot with product medias
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 15, 2013
1 parent a06e8d1 commit 03c6970
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/backend/BSKiwiXML.pm
Expand Up @@ -68,6 +68,7 @@ our $kiwidesc = [
'compressed',
'flags',
'filesystem',
'firmware',
'fsnocheck',
'fsreadonly',
'fsreadwrite',
Expand Down
1 change: 1 addition & 0 deletions src/backend/BSProductXML.pm
Expand Up @@ -220,6 +220,7 @@ our $productdesc = [
'flavor',
'repo_only',
'mediastyle',
'firmware',
'registration',
'create_repomd',
'sourcemedia',
Expand Down
4 changes: 3 additions & 1 deletion src/backend/bs_productconvert
Expand Up @@ -1321,7 +1321,9 @@ foreach my $medium ( @$media ){
my $kiwi = Storable::dclone(\%generalImage);
if (defined($medium->{'mediastyle'}) && $medium->{'mediastyle'} ne "suse-11.1" && $medium->{'mediastyle'} ne "suse-11.2") {
$kiwi->{schemaversion} = "4.1"; # new kiwi requires exact this version
$kiwi->{preferences}->{type} = [{image => "product"}];
my $attrs = {image => "product"};
$attrs->{'firmware'} = $medium->{'firmware'} if $medium->{'firmware'};
$kiwi->{preferences}->{type} = [$attrs];
}else{
# the schemE vs. schemA is intended by kiwi!
$kiwi->{schemeversion} = "2.4"; # before openSUSE 11.3, until kiwi 3.74
Expand Down

0 comments on commit 03c6970

Please sign in to comment.