Skip to content

Commit

Permalink
Import
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecmd committed Jan 30, 2021
1 parent 9949e6b commit 34e7b27
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Usage

This is more a dump of notes than instructions.

```
make bin-x86_64-efi/ipxe.efi bin/undionly.kpxe -j$(nproc) EMBED=scriptlet.ipxe
```

Tateru iPXE uses DHCP option code 129 instead of requiring looking at the
agent and determining the filename accordingly. This makes it easy to use
on more conventional DHCP servers.

Example ISC DHCP Config:

```
option domain-name "example.org";
option domain-name-servers 8.8.8.8;
default-lease-time 600;
max-lease-time 7200;
authoritative;
option client-arch code 93 = unsigned integer 16;
option tateru-ipxe-cfg code 129 = string;
subnet 172.16.31.0 netmask 255.255.255.0 {
range 172.16.31.100 172.16.31.150;
option routers 172.16.31.1;
option tateru-ipxe-cfg "http://172.16.31.90/tateru/ipxe.cfg";
if option client-arch != 00:00 {
filename "ipxe.efi";
} else {
filename "undionly.kpxe";
}
}
```
7 changes: 7 additions & 0 deletions general.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#define DOWNLOAD_PROTO_HTTPS
#define NET_PROTO_IPV6
#define CONSOLE_CMD
#define PING_CMD
#define REBOOT_CMD
#define VLAN_CMD
#define VMWARE_SETTINGS
4 changes: 4 additions & 0 deletions scriptlet.ipxe
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!ipxe
set use-cached 1
dhcp
chain ${129:string}

0 comments on commit 34e7b27

Please sign in to comment.