diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-23 20:08:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-23 20:08:19 +0200 |
commit | 603657a166bff4a16606a2575364446171466af6 (patch) | |
tree | ad31cfff7432d5846d8a40505c1943a6fb1d1718 /README | |
parent | 6b3c6b23a16869012c934c0df6244885b22e0aa1 (diff) |
Initial implementation of network configuration
Diffstat (limited to 'README')
-rw-r--r-- | README | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -0,0 +1,35 @@ +buildos is a Debian-based in-memory, net-booted operating system specialized +for building software with the build2 toolchain. + +Configuration +------------- + +- Network is configured via DHCP. All Ethernet intrface that have carrier are + tried in (some) order and the first interface that is successfully configure + via DHCP is used. + +- Hostname is configure from the DHCP information. Failed that, a name is + generated based on the MAC address. @@ Maybe also kernel cmdline. + +PXE +--- + +- Copy the kernel image and initrd to TFTP + +# mkdir -p /var/lib/tftpboot/buildos +# cp buildos-image buildos-initrd /var/lib/tftpboot/buildos/ + +- Assuming the host has MAC address de-ad-be-ef-b8-da, create host-specific + configuration (or use 'default' for the last path component to apply to + all the hosts): + +# cat <<EOF >/var/lib/tftpboot/pxelinux.cfg/01-de-ad-be-ef-b8-da +default buildos +prompt 1 +timeout 50 + +label buildos + menu label buildos + kernel /buildos/buildos-image + append initrd=/buildos/buildos-initrd +EOF |