소스 검색

Only use initrd if present

Antony Messerli 3 달 전
부모
커밋
2e8bfc4a1b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      roles/netbootxyz/templates/menu/utils-arm.ipxe.j2

+ 2 - 0
roles/netbootxyz/templates/menu/utils-arm.ipxe.j2

@@ -20,7 +20,9 @@ goto utils_exit
 :{{ key }}
 imgfree
 kernel {{ value.kernel }}
+{% if value.initrd is defined and value.initrd %}
 initrd {{ value.initrd }}
+{% endif %}
 boot
 goto utils_exit
 {% endif %}