methods/js_server.rb
# Copy SPARC boot images to /tftpboot
Copy SPARC boot images to /tftpboot
Copy SPARC boot images to / tftpboot
def copy_js_sparc_boot_images(options)
  boot_list=[]
  options['tftpdir']="/tftpboot"
  boot_list.push("sun4u")
  if options['version'] == "10"
    boot_list.push("sun4v")
  end
  boot_list.each do |boot_arch|
    boot_file = options['repodir']+"/Solaris_"+options['version']+"/Tools/Boot/platform/"+boot_arch+"/inetboot"
    tftp_file = options['tftpdir']+"/"+boot_arch+".inetboot.sol_"+options['version']+"_"+options['update']
    if not File.exist?(boot_file)
      message = "Information:\tCopying boot image "+boot_file+" to "+tftp_file
      command = "cp #{boot_file} #{tftp_file}"
      execute_command(options,message,command)
    end
  end
  return
end
def copy_js_sparc_boot_images ( options ) boot_list = [ ] options [ 'tftpdir' ] = "/tftpboot" boot_list . push ( "sun4u" ) if options [ 'version' ] == "10" boot_list . push ( "sun4v" ) end boot_list . each do | boot_arch | boot_file = options [ 'repodir' ] + "/Solaris_" + options [ 'version' ] + "/Tools/Boot/platform/" + boot_arch + "/inetboot" tftp_file = options [ 'tftpdir' ] + "/" + boot_arch + ".inetboot.sol_" + options [ 'version' ] + "_" + options [ 'update' ] if not File . exist? ( boot_file ) message = "Information:\tCopying boot image " + boot_file + " to " + tftp_file command = "cp #{boot_file} #{tftp_file}" execute_command ( options , message , command ) end end return end
Copy SPARC boot images to /tftpboot
Copy SPARC boot images to / tftpboot
options
<not_specific>