diff options
| author | Warner Losh <imp@FreeBSD.org> | 2026-09-24 14:46:06 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2026-09-26 06:43:54 +0000 |
| commit | a844bc229e8333e2eb88906a5566c9226ffdc2b2 (patch) | |
| tree | 3aae54861c7c6e9680448f30a4929e38e5b50bc3 | |
| parent | ab9130c737c718391cf5318a773ae500a955a4f9 (diff) | |
boot-test.sh: Add netboot-http-efi test
Using iPXE, chainboot loader.efi with rootdev=http://${next-server}/
to test the loader's http:// code.
Sponsored by: Netflix
| -rwxr-xr-x | tools/boot/boot-test.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/boot/boot-test.sh b/tools/boot/boot-test.sh index fd11f1a39f6b..a2149e5da80a 100755 --- a/tools/boot/boot-test.sh +++ b/tools/boot/boot-test.sh @@ -1198,6 +1198,15 @@ EOF chain tftp://\${next-server}/loader.efi EOF register_netboot_test netboot-efi ${tftp} /boot-efi.ipxe "" qemu_netboot_ramdisk + + # Same idea as netboot-efi, but rootdev= forces currdev to an + # http:// URL so the root fetch exercises the loader's own EFI + # HTTP devspec (efi/libefi/efihttp.c) instead of tftp/NFS. + cat > ${tftp}/boot-http.ipxe <<EOF +#!ipxe +chain tftp://\${next-server}/loader.efi rootdev=http://\${next-server}/ +EOF + register_netboot_test netboot-http-efi ${tftp} /boot-http.ipxe "" qemu_netboot_ramdisk fi cat > ${tftp}/boot.ipxe <<EOF |
