소스 검색

Merge pull request #34 from netbootxyz/customboot

add bootstrapping by mac address or hostname
Antony Messerli 5 년 전
부모
커밋
a826b44423
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      roles/netbootxyz/templates/disks/netboot.xyz.j2

+ 2 - 0
roles/netbootxyz/templates/disks/netboot.xyz.j2

@@ -50,6 +50,8 @@ echo Attempting chainload of ${boot_domain}...
 goto menu || goto failsafe
 
 :tftpmenu
+isset ${hostname} && chain --autofree tftp://${next-server}/HOSTNAME-${hostname}.ipxe || echo Custom boot by Hostname not found trying MAC...
+chain --autofree tftp://${next-server}/MAC-${mac:hexraw}.ipxe || echo Custom boot by MAC not found booting default...
 chain --autofree tftp://${next-server}/menu.ipxe || echo ${TFTP_ERR} && goto menu
 
 :menu