1247ca3deSSteve Price.\" Copyright (c) 1994 Gordon W. Ross, Theo de Raadt 24f329666SBrian S. Dean.\" Updated by Luigi Rizzo 3247ca3deSSteve Price.\" All rights reserved. 4247ca3deSSteve Price.\" 5247ca3deSSteve Price.\" Redistribution and use in source and binary forms, with or without 6247ca3deSSteve Price.\" modification, are permitted provided that the following conditions 7247ca3deSSteve Price.\" are met: 8247ca3deSSteve Price.\" 1. Redistributions of source code must retain the above copyright 9247ca3deSSteve Price.\" notice, this list of conditions and the following disclaimer. 10247ca3deSSteve Price.\" 2. Redistributions in binary form must reproduce the above copyright 11247ca3deSSteve Price.\" notice, this list of conditions and the following disclaimer in the 12247ca3deSSteve Price.\" documentation and/or other materials provided with the distribution. 13247ca3deSSteve Price.\" 3. The name of the author may not be used to endorse or promote products 14247ca3deSSteve Price.\" derived from this software without specific prior written permission. 15247ca3deSSteve Price.\" 16247ca3deSSteve Price.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17247ca3deSSteve Price.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18247ca3deSSteve Price.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19247ca3deSSteve Price.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20247ca3deSSteve Price.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21247ca3deSSteve Price.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22247ca3deSSteve Price.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23247ca3deSSteve Price.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24247ca3deSSteve Price.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25247ca3deSSteve Price.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26950c15fcSAlexey Zelkin.\" 277f3dea24SPeter Wemm.\" $FreeBSD$ 28247ca3deSSteve Price.\" 29ace5be68SRuslan Ermilov.Dd December 23, 2002 30247ca3deSSteve Price.Dt DISKLESS 8 31247ca3deSSteve Price.Os 32247ca3deSSteve Price.Sh NAME 33247ca3deSSteve Price.Nm diskless 34247ca3deSSteve Price.Nd booting a system over the network 35247ca3deSSteve Price.Sh DESCRIPTION 36247ca3deSSteve PriceThe ability to boot a machine over the network is useful for 37950c15fcSAlexey Zelkin.Em diskless 38247ca3deSSteve Priceor 39950c15fcSAlexey Zelkin.Em dataless 40247ca3deSSteve Pricemachines, or as a temporary measure while repairing or 41247ca3deSSteve Pricere-installing file systems on a local disk. 42247ca3deSSteve PriceThis file provides a general description of the interactions between 43247ca3deSSteve Pricea client and its server when a client is booting over the network. 44247ca3deSSteve Price.Sh OPERATION 45247ca3deSSteve PriceWhen booting a system over the network, there are three 46247ca3deSSteve Pricephases of interaction between client and server: 47ace5be68SRuslan Ermilov.Bl -enum 483136363fSRuslan Ermilov.It 49ace5be68SRuslan ErmilovThe stage-1 bootstrap, typically PXE built into your Ethernet 50c2095e2bSMatthew Dilloncard, loads a second-stage boot program. 513136363fSRuslan Ermilov.It 52ace5be68SRuslan ErmilovThe second-stage boot program, typically 53ace5be68SRuslan Ermilov.Xr pxeboot 8 , 54ace5be68SRuslan Ermilovloads modules and 55ace5be68SRuslan Ermilovthe kernel, and boots the kernel. 563136363fSRuslan Ermilov.It 57ace5be68SRuslan ErmilovThe kernel 58ace5be68SRuslan Ermilov.Tn NFS 59ace5be68SRuslan Ermilovmounts the root directory and continues from there. 60247ca3deSSteve Price.El 61247ca3deSSteve Price.Pp 62247ca3deSSteve PriceEach of these phases are described in further detail below. 63247ca3deSSteve Price.Pp 64ace5be68SRuslan ErmilovFirst, the stage-1 bootstrap loads the stage-2 boot program over 65ace5be68SRuslan Ermilovthe network. 66ace5be68SRuslan ErmilovThe stage-1 bootstrap typically uses 67ace5be68SRuslan Ermilov.Tn BOOTP 68ace5be68SRuslan Ermilovor 69ace5be68SRuslan Ermilov.Tn DHCP 70ace5be68SRuslan Ermilovto obtain the filename to load, then uses 71ace5be68SRuslan Ermilov.Tn TFTP 72ace5be68SRuslan Ermilovto load the file. 73ace5be68SRuslan ErmilovThis file is typically called 74ace5be68SRuslan Ermilov.Pa pxeboot , 75ace5be68SRuslan Ermilovand should be copied from 76c2095e2bSMatthew Dillon.Pa /boot/pxeboot 77ace5be68SRuslan Ermilovinto the 78ace5be68SRuslan Ermilov.Tn TFTP 79ace5be68SRuslan Ermilovdirectory on the server, which is typically 80c2095e2bSMatthew Dillon.Pa /tftpdir . 81247ca3deSSteve Price.Pp 82c2095e2bSMatthew DillonThe stage-2 boot program then loads additional modules and the kernel. 83ace5be68SRuslan ErmilovThese files may not exist on the 84ace5be68SRuslan Ermilov.Tn DHCP 85ace5be68SRuslan Ermilovor 86ace5be68SRuslan Ermilov.Tn BOOTP 87ace5be68SRuslan Ermilovserver. 88ace5be68SRuslan ErmilovYou can use the 89ace5be68SRuslan Ermilov.Ic next-server 90ace5be68SRuslan Ermilovoption available in 91ace5be68SRuslan Ermilov.Tn DHCP 92ace5be68SRuslan Ermilovconfigurations to specify the server holding 93ace5be68SRuslan Ermilovthe second stage boot files and kernel. 94ace5be68SRuslan ErmilovThe stage-2 program uses 95ace5be68SRuslan Ermilov.Tn NFS 96ace5be68SRuslan Ermilovor 97ace5be68SRuslan Ermilov.Tn TFTP 98ace5be68SRuslan Ermilovto obtain these files. 99ace5be68SRuslan ErmilovBy default, 100ace5be68SRuslan Ermilov.Tn NFS 101ace5be68SRuslan Ermilovis used. 102ace5be68SRuslan ErmilovIf you are using 103ace5be68SRuslan Ermilov.Xr pxeboot 8 , 104ace5be68SRuslan Ermilovyou can install a version that uses 105ace5be68SRuslan Ermilov.Tn TFTP 106ace5be68SRuslan Ermilovby setting 107ace5be68SRuslan Ermilov.Li LOADER_TFTP_SUPPORT=YES 108c2095e2bSMatthew Dillonin your 109c2095e2bSMatthew Dillon.Pa /etc/make.conf , 110ace5be68SRuslan Ermilovthen recompiling and reinstalling 111ace5be68SRuslan Ermilov.Xr pxeboot 8 112ace5be68SRuslan Ermilovvia the command listed below. 113ace5be68SRuslan ErmilovIt is often necessary to use 114ace5be68SRuslan Ermilov.Tn TFTP 115ace5be68SRuslan Ermilovhere so you can place a custom kernel 116ace5be68SRuslan Ermilovin 117ace5be68SRuslan Ermilov.Pa /tftpdir/ . 118ace5be68SRuslan ErmilovIf you use 119ace5be68SRuslan Ermilov.Tn NFS 120ace5be68SRuslan Ermilovand do not have a custom root file system for the 121ace5be68SRuslan Ermilov.Nm 122c2095e2bSMatthew Dillonclient, the stage-2 boot will load your server's kernel as the kernel for 123ace5be68SRuslan Ermilovthe 124ace5be68SRuslan Ermilov.Nm 125ace5be68SRuslan Ermilovmachine, which may not be what you want to have happen. 126c2095e2bSMatthew Dillon.Bd -literal -offset indent 127c2095e2bSMatthew Dilloncd /usr/src/sys/i386/boot 128c2095e2bSMatthew Dillonmake clean; make; make install 129c2095e2bSMatthew Dilloncp /boot/pxeboot /tftpdir/ 130c2095e2bSMatthew Dillon.Ed 131247ca3deSSteve Price.Pp 132ace5be68SRuslan ErmilovIn phase 3, the kernel again uses 133ace5be68SRuslan Ermilov.Tn DHCP 134ace5be68SRuslan Ermilovor 135ace5be68SRuslan Ermilov.Tn BOOTP 136ace5be68SRuslan Ermilovto acquire 1374f329666SBrian S. Deanconfiguration information, and proceeds to mount the 138ace5be68SRuslan Ermilovroot file system and start operation. 139ace5be68SRuslan ErmilovThe boot 140ace5be68SRuslan Ermilovscripts recognize a 141ace5be68SRuslan Ermilov.Nm 142ace5be68SRuslan Ermilovstartup and perform 143c2095e2bSMatthew Dillonthe actions found in 144c2095e2bSMatthew Dillon.Pa /etc/rc.d/initdiskless 145c2095e2bSMatthew Dillonand 146c2095e2bSMatthew Dillon.Pa /etc/rc.d/diskless . 147ace5be68SRuslan ErmilovOn older systems, the scripts are located in 1484f329666SBrian S. Dean.Pa /etc/rc.diskless1 1494f329666SBrian S. Deanand 150c2095e2bSMatthew Dillon.Pa /etc/rc.diskless2 . 151247ca3deSSteve Price.Sh CONFIGURATION 152ace5be68SRuslan ErmilovIn order to run a 153ace5be68SRuslan Ermilov.Nm 154ace5be68SRuslan Ermilovclient, you need the following: 1554f329666SBrian S. Dean.Bl -bullet 1563136363fSRuslan Ermilov.It 157ace5be68SRuslan ErmilovAn 158ace5be68SRuslan Ermilov.Tn NFS 159ace5be68SRuslan Ermilovserver which exports a root and 160ace5be68SRuslan Ermilov.Pa /usr 161ace5be68SRuslan Ermilovpartitions with appropriate permissions. 162ace5be68SRuslan ErmilovThe 163ace5be68SRuslan Ermilov.Nm 164ace5be68SRuslan Ermilovscripts work with read-only partitions, as long as root is exported with 1654f329666SBrian S. Dean.Fl maproot Ns =0 1664f329666SBrian S. Deanso that some system files can be accessed. 1674f329666SBrian S. DeanAs an example, 168247ca3deSSteve Price.Pa /etc/exports 1694f329666SBrian S. Deancan contain the following lines: 1704f329666SBrian S. Dean.Bd -literal -offset indent 17199253b64SDima Dorfman<ROOT> -ro -maproot=0 -alldirs <list of diskless clients> 17299253b64SDima Dorfman/usr -ro -alldirs <list of diskless clients> 173247ca3deSSteve Price.Ed 174247ca3deSSteve Price.Pp 1754f329666SBrian S. Deanwhere 1764f329666SBrian S. Dean.Aq ROOT 1774f329666SBrian S. Deanis the mount point on the server of the root partition. 1784f329666SBrian S. DeanThe script 1794f329666SBrian S. Dean.Pa /usr/share/examples/diskless/clone_root 180ace5be68SRuslan Ermilovcan be used to create a shared read-only root partition, 181c2095e2bSMatthew Dillonbut in many cases you may decide to export 182ace5be68SRuslan Ermilov(again as read-only) the root directory used by 1834f329666SBrian S. Deanthe server itself. 1843136363fSRuslan Ermilov.It 185ace5be68SRuslan ErmilovA 1864f329666SBrian S. Dean.Tn BOOTP 1874f329666SBrian S. Deanor 1884f329666SBrian S. Dean.Tn DHCP 1894f329666SBrian S. Deanserver. 1904f329666SBrian S. Dean.Xr bootpd 8 1914f329666SBrian S. Deancan be enabled by 1924f329666SBrian S. Deanuncommenting the 193ace5be68SRuslan Ermilov.Dq Li bootps 1944f329666SBrian S. Deanline in 1954f329666SBrian S. Dean.Pa /etc/inetd.conf . 1964f329666SBrian S. DeanA sample 1974f329666SBrian S. Dean.Pa /etc/bootptab 1984f329666SBrian S. Deancan be the following: 1994f329666SBrian S. Dean.Bd -literal -offset indent 2004f329666SBrian S. Dean .default:\\ 2014f329666SBrian S. Dean hn:ht=1:vm=rfc1048:\\ 2024f329666SBrian S. Dean :sm=255.255.255.0:\\ 2034f329666SBrian S. Dean :sa=<SERVER>:\\ 2044f329666SBrian S. Dean :gw=<GATEWAY>:\\ 2054f329666SBrian S. Dean :rp="<SERVER>:<ROOT>": 2064f329666SBrian S. Dean 2074f329666SBrian S. Dean<CLIENT>:ha=0123456789ab:tc=.default 208247ca3deSSteve Price.Ed 209247ca3deSSteve Price.Pp 2104f329666SBrian S. Deanwhere 2114f329666SBrian S. Dean.Aq SERVER , 2124f329666SBrian S. Dean.Aq GATEWAY 2134f329666SBrian S. Deanand 2144f329666SBrian S. Dean.Aq ROOT 2154f329666SBrian S. Deanhave the obvious meanings. 2164f329666SBrian S. Dean.It 217c2095e2bSMatthew DillonA properly initialized root partition. 218c2095e2bSMatthew DillonThe script 219c2095e2bSMatthew Dillon.Pa /usr/share/examples/diskless/clone_root 220c2095e2bSMatthew Dilloncan help in creating it, using the server's root partition 221ace5be68SRuslan Ermilovas a reference. 222ace5be68SRuslan ErmilovIf you are just starting out, you should 223c2095e2bSMatthew Dillonsimply use the server's own root directory, 224c2095e2bSMatthew Dillon.Pa / , 225c2095e2bSMatthew Dillonand not try to clone it. 2264f329666SBrian S. Dean.Pp 227c2095e2bSMatthew DillonYou often do not want to use the same 228c2095e2bSMatthew Dillon.Pa rc.conf 229c2095e2bSMatthew Dillonor 230c2095e2bSMatthew Dillon.Pa rc.local 231ace5be68SRuslan Ermilovfiles for the 232ace5be68SRuslan Ermilov.Nm 233ace5be68SRuslan Ermilovboot as you do on the server. 234ace5be68SRuslan ErmilovThe 235ace5be68SRuslan Ermilov.Nm 236ace5be68SRuslan Ermilovboot 237c2095e2bSMatthew Dillonscripts provide a mechanism through which you can override various files 238c2095e2bSMatthew Dillonin 2394f329666SBrian S. Dean.Pa /etc 240ace5be68SRuslan Ermilov(as well as other subdirectories of root). 241ace5be68SRuslan ErmilovThe scripts provide four 242c2095e2bSMatthew Dillonoverriding directories situated in 243c2095e2bSMatthew Dillon.Pa /conf/base , 244c2095e2bSMatthew Dillon.Pa /conf/default , 245c2095e2bSMatthew Dillon.Pa /conf/<broadcast-ip> , 246c2095e2bSMatthew Dillonand 247c2095e2bSMatthew Dillon.Pa /conf/<machine-ip> . 248c2095e2bSMatthew DillonYou should always create 249c2095e2bSMatthew Dillon.Pa /conf/base/etc , 250c2095e2bSMatthew Dillonwhich will entirely replace the server's 251c2095e2bSMatthew Dillon.Pa /etc 252ace5be68SRuslan Ermilovon the 253ace5be68SRuslan Ermilov.Nm 254ace5be68SRuslan Ermilovmachine. 255c2095e2bSMatthew DillonYou can clone the server's 256c2095e2bSMatthew Dillon.Pa /etc 257ace5be68SRuslan Ermilovhere or you can create a special file which tells the 258ace5be68SRuslan Ermilov.Nm 259ace5be68SRuslan Ermilovboot scripts 260c2095e2bSMatthew Dillonto remount the server's 261c2095e2bSMatthew Dillon.Pa /etc 262c2095e2bSMatthew Dillononto 263c2095e2bSMatthew Dillon.Pa /conf/base/etc . 264c2095e2bSMatthew DillonYou do this by creating the file 265c2095e2bSMatthew Dillon.Pa /conf/base/etc/diskless_remount 266ace5be68SRuslan Ermilovcontaining the mount point to use as a basis of the 267ace5be68SRuslan Ermilov.Nm 268ace5be68SRuslan Ermilovmachine's 269c2095e2bSMatthew Dillon.Pa /etc . 270c2095e2bSMatthew DillonFor example, the file might contain: 271c2095e2bSMatthew Dillon.Pp 272ace5be68SRuslan Ermilov.Dl 10.0.0.1:/etc 273ace5be68SRuslan Ermilov.Pp 274ace5be68SRuslan ErmilovThe 275ace5be68SRuslan Ermilov.Nm 276ace5be68SRuslan Ermilovscripts create memory file systems to hold the overriden 277ace5be68SRuslan Ermilovdirectories. 278ace5be68SRuslan ErmilovOnly a 2MB partition is created by default, which may not 279ace5be68SRuslan Ermilovbe sufficient for your purposes. 280ace5be68SRuslan ErmilovTo override this, you can create the 281c2095e2bSMatthew Dillonfile 282c2095e2bSMatthew Dillon.Pa /conf/base/etc/md_size 283c2095e2bSMatthew Dilloncontaining the size, in 512 byte sectors, of the memory disk to create 284c2095e2bSMatthew Dillonfor that directory. 285c2095e2bSMatthew Dillon.Pp 286c2095e2bSMatthew DillonYou then typically provide file-by-file overrides in the 287c2095e2bSMatthew Dillon.Pa /conf/default/etc 288ace5be68SRuslan Ermilovdirectory. 289ace5be68SRuslan ErmilovAt a minimum, you must provide overrides for 290ace5be68SRuslan Ermilov.Pa /etc/fstab , /etc/rc.conf , 291c2095e2bSMatthew Dillonand 292c2095e2bSMatthew Dillon.Pa /etc/rc.local 293c2095e2bSMatthew Dillonvia 294ace5be68SRuslan Ermilov.Pa /conf/default/etc/fstab , /conf/default/etc/rc.conf , 295c2095e2bSMatthew Dillonand 296c2095e2bSMatthew Dillon.Pa /conf/default/etc/rc.local . 297c2095e2bSMatthew Dillon.Pp 298ace5be68SRuslan ErmilovOverrides are hierarchical. 299ace5be68SRuslan ErmilovYou can supply network-specific defaults 300c2095e2bSMatthew Dillonin the 301ace5be68SRuslan Ermilov.Pa /conf/ Ns Ao Ar BROADCASTIP Ac Ns Pa /etc 302ace5be68SRuslan Ermilovdirectory, where 303ace5be68SRuslan Ermilov.Aq Ar BROADCASTIP 304ace5be68SRuslan Ermilovrepresents the broadcast IP address of 305ace5be68SRuslan Ermilovthe 306ace5be68SRuslan Ermilov.Nm 307ace5be68SRuslan Ermilovsystem as given to it via 308c2095e2bSMatthew Dillon.Tn BOOTP . 309c2095e2bSMatthew DillonThe 310c2095e2bSMatthew Dillon.Pa diskless_remount 311c2095e2bSMatthew Dillonand 312c2095e2bSMatthew Dillon.Pa md_size 313c2095e2bSMatthew Dillonfeatures work in any of these directories. 314c2095e2bSMatthew DillonThe configuration feature works on directories other then 315c2095e2bSMatthew Dillon.Pa /etc , 316c2095e2bSMatthew Dillonyou simply create the directory you wish to replace or override in 317c2095e2bSMatthew Dillon.Pa /conf/{base,default,<broadcast>,<ip>}/* 318c2095e2bSMatthew Dillonand work it in the same way that you work 319c2095e2bSMatthew Dillon.Pa /etc . 320c2095e2bSMatthew Dillon.Pp 321c2095e2bSMatthew DillonSince you normally clone the server's 322c2095e2bSMatthew Dillon.Pa /etc 323c2095e2bSMatthew Dillonusing the 324c2095e2bSMatthew Dillon.Pa /conf/base/etc/diskless_remount , 325ace5be68SRuslan Ermilovyou might wish to remove unneeded files from the memory file system. 326ace5be68SRuslan ErmilovFor example, 327ace5be68SRuslan Ermilovif the server has a firewall but you do not, you might wish 328c2095e2bSMatthew Dillonto remove 329c2095e2bSMatthew Dillon.Pa /etc/ipfw.conf . 330c2095e2bSMatthew DillonYou can do this by creating a 331ace5be68SRuslan Ermilov.Pa /conf/base/ Ns Ao Ar DIRECTORY Ac Ns Pa .remove 332ace5be68SRuslan Ermilovfile. 333ace5be68SRuslan ErmilovFor example, 334c2095e2bSMatthew Dillon.Pa /conf/base/etc.remove , 335c2095e2bSMatthew Dillonwhich contains a list of relative paths that the boot scripts should remove 336c2095e2bSMatthew Dillonfrom the memory file systems. 3374f329666SBrian S. Dean.Pp 3384f329666SBrian S. DeanAs a minimum, you normally need to have the following in 3394f329666SBrian S. Dean.Pa /conf/default/etc/fstab 3404f329666SBrian S. Dean.Bd -literal -offset indent 3414f329666SBrian S. Dean<SERVER>:<ROOT> / nfs ro 0 0 3424f329666SBrian S. Dean<SERVER>:/usr /usr nfs ro 0 0 3434f329666SBrian S. Deanproc /proc procfs rw 0 0 3444f329666SBrian S. Dean.Ed 3454f329666SBrian S. Dean.Pp 346c2095e2bSMatthew DillonYou also need to create a customized version of 3474f329666SBrian S. Dean.Pa /conf/default/etc/rc.conf 3484f329666SBrian S. Deanwhich should contain 349ace5be68SRuslan Ermilovthe startup options for the 350ace5be68SRuslan Ermilov.Nm 351ace5be68SRuslan Ermilovclient, and 352c2095e2bSMatthew Dillon.Pa /conf/default/etc/rc.local 353c2095e2bSMatthew Dillonwhich could be empty but prevents the server's own 354c2095e2bSMatthew Dillon.Pa /etc/rc.local 355ace5be68SRuslan Ermilovfrom leaking onto the 356ace5be68SRuslan Ermilov.Nm 357ace5be68SRuslan Ermilovsystem. 3584f329666SBrian S. Dean.Pp 359c2095e2bSMatthew DillonIn 360c2095e2bSMatthew Dillon.Pa rc.conf , 361c2095e2bSMatthew Dillonmost likely 3624f329666SBrian S. Deanyou will not need to set 3634f329666SBrian S. Dean.Va hostname 3644f329666SBrian S. Deanand 3654f329666SBrian S. Dean.Va ifconfig_* 3664f329666SBrian S. Deanbecause these will be already set by the startup code. 3674f329666SBrian S. DeanFinally, it might be convenient to use a 3684f329666SBrian S. Dean.Ic case 3694f329666SBrian S. Deanstatement using 3704f329666SBrian S. Dean.Li `hostname` 3714f329666SBrian S. Deanas the switch variable to do machine-specific configuration 372ace5be68SRuslan Ermilovin case a number of 373ace5be68SRuslan Ermilov.Nm 374ace5be68SRuslan Ermilovclients share the same configuration 3754f329666SBrian S. Deanfiles. 3764f329666SBrian S. Dean.It 377ace5be68SRuslan ErmilovThe kernel for the 378ace5be68SRuslan Ermilov.Nm 379ace5be68SRuslan Ermilovclients, which will be loaded using 380ace5be68SRuslan Ermilov.Tn NFS 381ace5be68SRuslan Ermilovor 382ace5be68SRuslan Ermilov.Tn TFTP , 383ace5be68SRuslan Ermilovshould be built with at least the following options: 384ace5be68SRuslan Ermilov.Pp 385ace5be68SRuslan Ermilov.D1 Cd "options BOOTP" 386ace5be68SRuslan Ermilov.D1 Cd "options BOOTP_NFSROOT" 387ace5be68SRuslan Ermilov.D1 Cd "options BOOTP_COMPAT" 3884f329666SBrian S. Dean.Pp 389c2095e2bSMatthew DillonIn the devices section add: 390c2095e2bSMatthew Dillon.Pp 391ace5be68SRuslan Ermilov.D1 Cd "device md" 392ace5be68SRuslan Ermilov.Pp 393ace5be68SRuslan ErmilovIf you use the firewall, remember to default to 394ace5be68SRuslan Ermilov.Dq open , 395ace5be68SRuslan Ermilovor your kernel 396ace5be68SRuslan Ermilovwill not be able to send/receive the 397ace5be68SRuslan Ermilov.Tn BOOTP 398ace5be68SRuslan Ermilovpackets. 399247ca3deSSteve Price.El 4004f329666SBrian S. Dean.Sh SECURITY ISSUES 401ace5be68SRuslan ErmilovBe warned that using unencrypted 402ace5be68SRuslan Ermilov.Tn NFS 403ace5be68SRuslan Ermilovto mount root and user 4044f329666SBrian S. Deanpartitions may expose information such as 4054f329666SBrian S. Deanencryption keys. 4064f329666SBrian S. Dean.Sh BUGS 4074f329666SBrian S. DeanThis manpage is probably incomplete. 4084f329666SBrian S. Dean.Pp 4094f329666SBrian S. Dean.Fx 4104f329666SBrian S. Deansometimes requires to write onto 411c2095e2bSMatthew Dillonthe root partition, so the startup scripts mount MFS 4124f329666SBrian S. Deanfile systems on some locations (e.g.\& 4134f329666SBrian S. Dean.Pa /etc 4144f329666SBrian S. Deanand 4154f329666SBrian S. Dean.Pa /var ) , 4164f329666SBrian S. Deanwhile 4174f329666SBrian S. Deantrying to preserve the original content. 4184f329666SBrian S. DeanThe process might not handle all cases. 419950c15fcSAlexey Zelkin.Sh SEE ALSO 420bceb8aedSWolfram Schneider.Xr ethers 5 , 421247ca3deSSteve Price.Xr exports 5 , 4224f329666SBrian S. Dean.Xr bootpd 8 , 423bceb8aedSWolfram Schneider.Xr mountd 8 , 424247ca3deSSteve Price.Xr nfsd 8 , 4254f329666SBrian S. Dean.Xr pxeboot 8 , 426bceb8aedSWolfram Schneider.Xr reboot 8 , 427ace5be68SRuslan Ermilov.Xr tftpd 8 428ace5be68SRuslan Ermilov.Pp 429ace5be68SRuslan Ermilov.Pa ports/net/etherboot 430