Skip to content

Commit

Permalink
Exclude S390 from virtualization proposals. bnc#817943
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed May 16, 2013
1 parent 816aafc commit 402c909
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/clients/lan_proposal.ycp
Expand Up @@ -32,6 +32,24 @@ string func = args[0]:"";
map param = args[1]:$[];
map ret = $[];

/*
* Decides if a proposal for virtualization host machine is required.
*/
define boolean VirtProposalRequired()
{
// S390 has special requirements. See bnc#817943
if( Arch::s390() )
return false;

if( PackageSystem::Installed("xen") && !Arch::is_xenU())
return true;
if( PackageSystem::Installed("kvm") )
return true;
if( PackageSystem::Installed("qemu"))
return true;

return false;
}

/* create a textual proposal */
if(func == "MakeProposal") {
Expand Down Expand Up @@ -67,11 +85,7 @@ if(func == "MakeProposal") {

if (Lan::virt_net_proposal==nil)
{
if((PackageSystem::Installed("xen") && !Arch::is_xenU()) || PackageSystem::Installed("kvm")||
PackageSystem::Installed("qemu"))
Lan::virt_net_proposal = true;
else
Lan::virt_net_proposal = false;
Lan::virt_net_proposal = VirtProposalRequired();
}

Lan::Propose();
Expand Down

0 comments on commit 402c909

Please sign in to comment.