Advertisement
Guest User

PXE Default File

a guest
Sep 11th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 1.07 KB | None | 0 0
  1. DEFAULT menu
  2. PROMPT 0
  3. MENU TITLE PXE Menu
  4. TIMEOUT 200
  5. TOTALTIMEOUT 6000
  6. ONTIMEOUT local
  7.  
  8. LABEL local
  9. MENU LABEL (local)
  10. MENU DEFAULT
  11. LOCALBOOT 0
  12.  
  13. <% for profile in @profiles -%>
  14.     LABEL <%= "#{profile[:template]} - #{profile[:hostgroup]}" %>
  15.     kernel <%= profile[:hostgroup].operatingsystem.kernel(profile[:hostgroup].architecture) %>
  16.  
  17.     <% case profile[:hostgroup].operatingsystem.pxe_type -%>
  18.         <% when "kickstart" -%>
  19.             append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> ks=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ksdevice=bootif network kssendmac
  20.         <% when "preseed" -%>
  21.             append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> interface=auto url=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ramdisk_size=10800 root=/dev/rd/0 rw auto hostname=unassigned-hostname locale=en_US console-setup/ask_detect=false console-setup/layout=USA console-setup/variant=USA
  22.     <% end -%>
  23. <% end -%>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement