-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwin10.ipxe
53 lines (48 loc) · 2.28 KB
/
win10.ipxe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!ipxe
set nloc ${netX/busloc}
set pciid ${pci/${nloc}.0.2}${pci/${nloc}.2.2}
# clear any loaded files (avoids push into the wim)
imgfree
kernel wimboot gui quiet || shell
set startnetx
# E1D68
# TODO 0d4f only installing drivers in winpe, not when getting into windows.
# 15fc on T15 not working in winpe either
# TODO also fix ipxe sources and test
iseq ${pciid} 80860d4f && goto use_e1d68 ||
iseq ${pciid} 808615fc && goto use_e1d68 ||
iseq ${pciid} 808615bb && goto use_e1d68 ||
iseq ${pciid} 808615be && goto use_e1d68 ||
goto skip_e1d68
:use_e1d68
set startnetx ${startnetx}&drvload=e1d68x64.inf
initrd win10/drv/i219v_e1d68/e1d68x64.cat ||
initrd win10/drv/i219v_e1d68/e1d68x64.inf ||
initrd win10/drv/i219v_e1d68/e1d68x64.sys ||
initrd win10/drv/i219v_e1d68/e1dmsg.dll ||
:skip_e1d68
iseq ${pciid} 1af41000 && goto use_virtio ||
goto skip_virtio
:use_virtio
# without extra name wimboot crashes (in pcbios mode)
initrd win10/drv/virtio/netkvm.cat netkvm.cat ||
initrd win10/drv/virtio/netkvm.inf netkvm.inf ||
initrd win10/drv/virtio/netkvm.sys netkvm.sys ||
initrd win10/drv/virtio/netkvmco.dll netkvmco.dll ||
initrd win10/drv/virtio/vioscsi.cat vioscsi.cat ||
initrd win10/drv/virtio/vioscsi.inf vioscsi.inf ||
initrd win10/drv/virtio/vioscsi.sys vioscsi.sys ||
initrd win10/drv/virtio/viostor.cat viostor.cat ||
initrd win10/drv/virtio/viostor.inf viostor.inf ||
initrd win10/drv/virtio/viostor.sys viostor.sys ||
goto skip_virtio
:skip_virtio
initrd --name startnet.cmd win10/startnet.php?mac=${netX/mac:hexraw}&pciid=${pciid}${startnetx} startnet.cmd || shell
initrd --name winpe.jpg win10/winpe.jpg winpe.jpg || echo no background - ignored
initrd --name winre.jpg win10/winpe.jpg winre.jpg || echo no background - ignored
initrd --name setup.bmp win10/winpe.jpg setup.bmp || echo no background - ignored
# these are copied to several different places in the path on virtual VFAT that wimboot creates
# actuall boot.wim, must be boot.wim both in EFI and PCBIOS
initrd --name boot.wim win10/win10_boot_64_en.wim boot.wim || shell
boot || shell
goto start