From d8bcedffa86681a83b1ee61d88efdeedb2d50e64 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 16 Jun 2011 00:47:35 +0000 Subject: [PATCH] fix for bug 3266971: set default boot interface eth0 for SLES git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/imgcapture.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/imgcapture.pm b/xCAT-server/lib/xcat/plugins/imgcapture.pm index 1290d91f6..c04dd6fed 100644 --- a/xCAT-server/lib/xcat/plugins/imgcapture.pm +++ b/xCAT-server/lib/xcat/plugins/imgcapture.pm @@ -101,6 +101,12 @@ sub process_request { $profile = $ref_nodetype->{profile}; } + # -i flag is required with sles genimage + if (!$bootif && $os =~ /^sles/) { + $bootif = "eth0"; + } + + # check whether the osimage exists or not if($osimg) { my $osimgtab=xCAT::Table->new('osimage', -create=>1);