fai-mirror(1)
π fai-mirror π (the fai-mirror(1) page, General Commands Manual, bestie)
okay so you found the manual page for fai-mirror and you're like "what is this" β don't worry, I got you π«Ά. Full title situation: fai-mirror(1), it lives in the General Commands Manual, and it is genuinely one of the most useful little gremlins in the FAI toolbox. Let's get into it π
πΈ NAME πΈ
fai-mirror β create and manage a partial mirror for FAI β¨
π¦ SYNOPSIS π¦
fai-mirror [OPTION]... DIRECTORY
π« DESCRIPTION π«
So basically πββοΈ this command makes a partial mirror of Debian packages. Use it to build the fai CD, or as your local mirror when downloading the whole entire Debian mirror is simply not the vibe (it's huge, bestie, we don't have that kind of storage).
By default the mirror contains all packages of all classes used in the configuration space, which lives at /srv/fai/config/package_config. Periodt. π
β¨ OPTIONS β¨
-a ARCHβ download packages from architectureARCH. If you don't say anything, it just uses the host's native architecture. Lowkey the default is usually fine π-Bβ do not add packages included inbase.tar.xzand packages defined in/etc/fai/NFSROOTto the mirror. By default all of these packages are included. This one explicitly removes packages from the mirror that are already sitting inbase.tar.xz. And listen β you should not use this flag if your nfsroot is old and newer versions of the packages included inbase.tar.xzshould actually be going into the mirror. Just don't π-bβ create the mirror only from package names in/srv/fai/config. This does not include packages from/etc/fai/NFSROOT, but it also does not remove packages that are inbase.tar.xz. Super useful if your partial mirror does not match the Linux distribution of the nfsroot, or if you don't even have a nfsroot yet π§-C CFDIRβ useCFDIRas the configuration directory. Default is/etc/fai. You can also set the environment variableFAI_ETC_DIRinstead. Options, options π-c CLASS[,CLASS]β use only this list of classes for building the mirror. Can't be used in conjunction with-x. Not both, bestie, pick one π-hβ show simple help and version. Short, sweet, iconic.-Gβ create a generic mirror. This option is passed toinstall_packages. Often used with-I. Only omit-Gif you need the package mirror for this exact list of FAI classes π-Iβ ignore conflicts in package dependencies. This helps you download packages in one go that define a conflict with each other (for e.g.grub-pcandgrub-efi). Another way is to set-m1, which also avoids package conflicts but will be slower. π’-m MAXβ set the number of packages toNUM. This overwrites the variableMAXPACKAGES.-x CLASS[,CLASS]β exclude these classes. Do not add the packages of these classes to the mirror. Bye bye π-s DIRECTORYβ override the value ofFAI_CONFIGDIRset innfsroot.conf.-P FILEβ copy an APT preferences file into the cache config before creating the mirror. Using this you can set pin priority for packages to a certain release π-pβ preserve existingsources.list. NOT YET IMPLEMENTED. π (yes that's really what it says, don't come for me)-Vβ read variable definitions fromclass/*.varif used inpackage_config/<classes>.-vβ create verbose output. The talkative mode. We love her πΈ
π EXAMPLES π
$ fai-mirror -v /files/scratch/mirror
Creates a partial mirror in the directory /files/scratch/mirror using all classes.
$ fai-mirror -v -cDEFAULT,DEMO /debmirror
Creates a partial mirror containing all packages used in the classes DEFAULT and DEMO.
$ fai-mirror -v -cDEFAULT,DEBIAN,DEMO,AMD64,GRUB_PC /srv/debmirror-amd64
This will create a mirror including packages for the amd64 architecture defined for the classes specified. And the cute part? You can also run this on a non amd64 host π
$ fai-mirror -v -xARM64,ROCKY,UBUNTU,NOBLE,LIVEISO,CLOUD,STANDARD /tmp/large
This builds a mirror that is used for the large FAI ISO that's available on the projects home page.
π NOTES π
You only need root permissions if you access the official Debian mirror via NFS. π
By default, the variable MAXPACKAGES is set to 1, so conflicting packages can also be added to the mirror. Setting this to a higher number (e.g. 99999) reduces the time for creating the mirror, but some packages may be missing. Trade-offs, bestie, trade-offs π
fr fr, that higher-number speed thing comes with a "some packages may be missing" sticker. Choose your fighter.
π SEE ALSO π
This program is part of FAI (Fully Automatic Installation). The FAI homepage is https://fai-project.org.
fai-make-nfsroot(8), install_packages(8)
π¦ FILES π¦
/etc/fai/fai.confβ the FAI configuration file./etc/fai/nfsroot.confβ the FAI configuration file for the nfsroot./etc/fai/apt/sources.listβ package resource definition for FAI./srv/fai/config/package_config/β the FAI package configuration directory. This directory is defined by the variableFAI_CONFIGDIR.$NFSROOT/var/tmp/base-pkgs.lisβ the list of packages included inbase.tar.xzinside the nfsroot.$NFSROOT/var/tmp/packages.nfsrootβ additional packages that were added to the nfsroot by the configuration file/etc/fai/NFSROOT.
π AUTHOR π
Thomas Lange <lange@cs.uni-koeln.de>
and that's the whole page, bestie π This one came from FAI 6.5, dated January 2026, and it's the fai-mirror(1) manual β go build yourself a mirror, you absolute main character πβ¨
π¦ where this page comes from
- 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