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);