Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.84 KB | None | 0 0
  1. set timeout=0
  2.  
  3. menuentry 'Linux diskless' --class os {
  4.      insmod net
  5.      insmod efinet
  6.      insmod tftp
  7.      insmod gzio
  8.      insmod part_gpt
  9.      insmod efi_gop
  10.      insmod efi_uga
  11.  
  12.      # dhcp, tftp server in my network
  13.      set net_default_server=10.0.24.5
  14.  
  15.      # auto dhcp setup did not work for me, no idea why
  16.      net_bootp
  17.  
  18.      # ok let's assign a static address for now
  19.      #net_add_addr eno0 efinet0 192.168.100.9
  20.  
  21.      echo 'Network status: '
  22.      net_ls_cards
  23.      net_ls_addr
  24.      net_ls_routes
  25.  
  26.      echo 'Loading Linux ...'
  27.      #linux (tftp)/arch/vmlinuz archiso_http_srv=10.0.24.51
  28.      linux (tftp)/arch/vmlinuz archisobasedir=arch archiso_http_srv=http://10.0.24.5/ checksum=y ip=dhcp quiet script=http://10.0.24.5/install.sh
  29.  
  30.      echo 'Loading initial ramdisk ...'
  31.      initrd (tftp)/arch/archiso.img
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement