nfsroot.conf(5)
π nfsroot.conf β the nfsroot config for FAI π
okay bestie, gather round, because this is nfsroot.conf(5) and it's literally the file that makes your install server make sense. π
β¨ SYNOPSIS β¨
/etc/fai/nfsroot.conf
πΈ DESCRIPTION πΈ
so the nfsroot is a file system that lives on the install server, and your install clients use it while they're installing. that's the whole vibe. π¦
nfsroot.conf is where you define the essential options for the install server β and most of them get used inside the nfsroot, iykyk. define your variables with bash(1) syntax, because of course. π
π VARIABLES π
FAI_DEBOOTSTRAPβ two or three parameters fordebootstrap(8), separated by spaces. debootstrap gets called as the first part offai-make-nfsrootunless you use-B. this variable definesSUITEandMIRRORfor debootstrap, and the third parameter is the name of the bootstrap script variant you wanna use. example:
FAI_DEBOOTSTRAP="bullseye http://deb.debian.org/debian"
NFSROOT_ETC_HOSTSβ a multiline variable that gets added to/etc/hostsinside the nfsroot. use this when DNS isn't available on the clients, periodt. example:
NFSROOT_ETC_HOSTS="192.168.33.250 faiserver"
FAI_ROOTPWβ the encrypted root password on all install clients during the installation process. used when you log in via ssh. and no, bestie, this is NOT the password for the new installed system β it's just for the install-time nfsroot. example:
FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1' # pw is fai
use mkpasswd, htpasswd or md5pass to generate that password hash. π«Ά
echo "yoursecrectpassword" | mkpasswd -m md5 -s
NFSROOTβ the directory on the install server where the nfsroot gets created. home sweet home. πTFTPROOTβ the directory on the install server for the tftp data, used by PXE network boot. iconic behavior honestly. βFAI_CONFIGDIRβ location of the configuration space on the install server. used byfai-cd(8),fai-mirror(1)andfai-setup(8). the whole squad. πSERVERINTERFACEβ used to specify the interface when detecting the subnet for the exportfs line. you only need this when the install server has multiple interfaces. she's got range, okay. πSSH_IDENTITYβ location of a ssh public key file. this user can log into the install clients as root without a password. only useful withFAI_FLAGS="sshd". example:
SSH_IDENTITY=/home/admin/.ssh/id_rsa.pub
NFSROOT_HOOKSβ directory of hooks to be sourced at the end offai-make-nfsroot, which means they have to be shell scripts. no cap. π₯NFSROOT_SERVERβ IP address of the NFS server for the rootfs, if it's not on the DHCP server. this is only used byfai-chbootto work around dracut's DHCP handling, which prefers the DHCP server's IP address above all other DHCP options. like... it has favorites. πFAI_DEBOOTSTRAP_OPTSβ options that get passed todebootstrap(8). used for excluding packages and for specifying a different architecture. π§
π NOTES π
normally, the nfsroot is mounted by the install kernel via NFS. it's also used on the FAI CD. and FAI clients can also receive the nfsroot via http β in that case you have to create a compressed squashfs image of the nfsroot with fai-cd(8). so many options, she's flexible. β¨
π SEE ALSO π
fai-make-nfsroot(8), fai-setup(8), fai(8) fai-mirror(1) fai-chboot(8)
this file is part of FAI (Fully Automatic Installation). the FAI homepage is https://fai-project.org. go say hi. π«Ά
π AUTHOR π
this man page was written by Thomas Lange <lange@cs.uni-koeln.de>.
and that's the whole page bestie, no cap β brought to you by FAI 6.0, September 2022. mwah π slay, go configure something. π¦π
π¦ where this page comes from
- debian bookworm: fai-server 6.0.3+deb12u1
- debian trixie: fai-server 6.4.3
- ubuntu noble: fai-server 6.0.5ubuntu1
- ubuntu resolute: fai-server 6.4.3ubuntu1
- ubuntu stonking: fai-server 6.6ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms