2023-09-26 14:39:34 +00:00
|
|
|
```
|
|
|
|
/
|
|
|
|
/mkosi.skeleton/ oder mkosi.skeleton.tar
|
|
|
|
/mkosi.extra/ oder mkosi.extra.tar
|
|
|
|
/mkosi.nspawn
|
|
|
|
/mkosi.cache/
|
|
|
|
/mkosi.builddir/
|
|
|
|
/mkosi.rootpw
|
|
|
|
/mkosi.passphrase
|
|
|
|
/mkosi.crt
|
|
|
|
/mkosi.key
|
|
|
|
/mkosi.output/
|
|
|
|
/mkosi.credentials/
|
|
|
|
/mkosi.repart/
|
|
|
|
/mkosi.repart/*.conf
|
|
|
|
/mkosi.conf
|
|
|
|
/mkosi.presets/
|
|
|
|
```
|
|
|
|
---
|
|
|
|
```
|
2023-10-25 22:15:29 +00:00
|
|
|
mkosi-cli
|
|
|
|
```
|
|
|
|
```
|
|
|
|
summary
|
|
|
|
build
|
|
|
|
shell
|
|
|
|
boot
|
|
|
|
qemu
|
|
|
|
ssh
|
|
|
|
clean
|
|
|
|
serve
|
|
|
|
bump
|
|
|
|
genkey
|
|
|
|
documentation
|
|
|
|
- -force,-f
|
|
|
|
- -directory=,-C
|
|
|
|
- -debug=
|
|
|
|
- -debug-shell=
|
|
|
|
- -version
|
|
|
|
- -help,-h
|
|
|
|
- -genkey-common-name=
|
|
|
|
- -genkey-valid-days=
|
|
|
|
- -auto-bump=,-B
|
|
|
|
- -doc-format
|
|
|
|
```
|
|
|
|
```
|
2023-09-26 14:39:34 +00:00
|
|
|
mkosi.conf
|
|
|
|
```
|
|
|
|
```ini
|
|
|
|
[Match]
|
|
|
|
Distribution=
|
|
|
|
Release=
|
2023-10-25 22:15:29 +00:00
|
|
|
Architecture=
|
2023-09-26 14:39:34 +00:00
|
|
|
PathExists=
|
|
|
|
ImageId=
|
|
|
|
ImageVersion=
|
|
|
|
Bootable=
|
|
|
|
Format=
|
|
|
|
SystemdVersion=
|
|
|
|
|
2023-10-25 22:15:29 +00:00
|
|
|
[Config]
|
|
|
|
Include=
|
|
|
|
|
2023-09-26 14:39:34 +00:00
|
|
|
[Preset]
|
|
|
|
Preset=
|
|
|
|
Dependencies=
|
|
|
|
|
|
|
|
[Distribution]
|
2023-10-25 22:15:29 +00:00
|
|
|
Distribution=fedora|debian|ubuntu|arch|opensuse|mageia|centos|rhel-ubi|openmandriva|rocky|alma|custom
|
2023-09-26 14:39:34 +00:00
|
|
|
Release=
|
|
|
|
Architecture=alpha|arc|arm|arm64|ia64|loongarch64|mips64-le|mips-le|parisc|ppc|ppc64|ppc64-le|riscv32|riscv64|s390|s390x|tilegx|x86|x86-64
|
|
|
|
Mirror=
|
|
|
|
LocalMirror=
|
|
|
|
RepositoryKeyCheck=
|
|
|
|
Repositories=
|
|
|
|
CacheOnly=
|
|
|
|
|
|
|
|
[Output]
|
|
|
|
Format=directory|tar|cpio|disk|uki|none
|
|
|
|
ManifestFormat=json|changelog
|
|
|
|
Output=
|
|
|
|
CompressOutput=yes|no|xz|zstd
|
2023-10-25 22:15:29 +00:00
|
|
|
OutputDirectory=mkosi.output
|
|
|
|
WorkspaceDirectory=mkosi.workspace
|
|
|
|
CacheDirectory=mkosi.cache
|
|
|
|
BuildDirectory=mkosi.builddir
|
2023-09-26 14:39:34 +00:00
|
|
|
ImageVersion=
|
|
|
|
ImageId=
|
|
|
|
SplitArtifacts=
|
2023-10-25 22:15:29 +00:00
|
|
|
RepartDirectories=mkosi.repart
|
2023-09-26 14:39:34 +00:00
|
|
|
SectorSize=
|
|
|
|
Overlay=
|
|
|
|
UseSubvolumes=auto|yes|no
|
|
|
|
Seed=(uuid)|random
|
|
|
|
SourceDateEpoch=
|
|
|
|
|
|
|
|
[Content]
|
|
|
|
Packages=
|
|
|
|
BuildPackages=
|
|
|
|
WithDocs=
|
|
|
|
BaseTrees=
|
2023-10-25 22:15:29 +00:00
|
|
|
SkeletonTrees=mkosi.skeleton
|
2023-09-26 14:39:34 +00:00
|
|
|
PackageManagerTrees=
|
2023-10-25 22:15:29 +00:00
|
|
|
ExtraTrees=mkosi.extra|mkosi.extra.tar
|
2023-09-26 14:39:34 +00:00
|
|
|
RemovePackages=
|
|
|
|
RemoveFiles=
|
|
|
|
CleanPackageMetadata=yes|no|auto
|
|
|
|
PrepareScript=
|
|
|
|
BuildScript=
|
|
|
|
PostInstallationScript=
|
|
|
|
FinalizeScript=
|
|
|
|
BuildSources=
|
|
|
|
Environment=
|
|
|
|
WithTests=yes|no
|
|
|
|
WithNetwork=yes|no
|
|
|
|
Bootable=yes|no|auto
|
|
|
|
Bootloader=none|systemd-boot|uki|grub
|
|
|
|
BiosBootloader=none|grub
|
|
|
|
Initrds=
|
|
|
|
KernelCommandLine=
|
|
|
|
KernelModulesInclude=
|
|
|
|
KernelModulesExclude=
|
|
|
|
KernelModulesInitrd=yes|no
|
|
|
|
KernelModulesInitrdInclude=
|
|
|
|
KernelModulesInitrdExclude=
|
|
|
|
Locale=
|
|
|
|
LocaleMessages=
|
|
|
|
Keymap=
|
|
|
|
Timezone=
|
|
|
|
Hostname=
|
|
|
|
RootShell=
|
2023-10-25 22:15:29 +00:00
|
|
|
RootPassword=mkosi.rootpw (hashed:...)
|
2023-09-26 14:39:34 +00:00
|
|
|
Autologin=yes|no
|
|
|
|
MakeInitrd=
|
|
|
|
Ssh=
|
|
|
|
|
|
|
|
[Validation]
|
|
|
|
SecureBoot=
|
|
|
|
SecureBootKey=
|
|
|
|
SecureBootCertificate=
|
|
|
|
SecureBootSignTools=sbsign|pesign|auto
|
|
|
|
VerityKey=
|
|
|
|
VerityCertificate=
|
|
|
|
SignExpectedPCR=yes|no|auto
|
|
|
|
Passphrase=
|
|
|
|
Checksum=
|
|
|
|
Sign=
|
|
|
|
Key=
|
|
|
|
|
|
|
|
[Host]
|
|
|
|
Incremental=
|
2023-10-25 22:15:29 +00:00
|
|
|
NSpawnSettings=mkosi.nspawn
|
2023-09-26 14:39:34 +00:00
|
|
|
ExtraSearchPaths=
|
|
|
|
QemuGui=yes|no
|
|
|
|
QemuSmp=2
|
|
|
|
QemuMem=1G
|
|
|
|
QemuKvm=yes|no|auto
|
|
|
|
QemuVsock=yes|no|auto
|
|
|
|
QemuSwtpm=yes|no|auto
|
|
|
|
QemuCdrom=yes|no
|
|
|
|
QemuFirmware=uefi|bios|linux|auto
|
|
|
|
QemuKernel=
|
|
|
|
QemuArgs=
|
|
|
|
Ephemeral=
|
|
|
|
Credentials=key=value key2=value2
|
|
|
|
KernelCommandLineExtra=
|
|
|
|
Acl=yes|no
|
2023-10-25 22:15:29 +00:00
|
|
|
ToolsTree=mkosi.tools
|
2023-09-26 14:39:34 +00:00
|
|
|
ToolsTreeDistribution=
|
|
|
|
ToolsTreeRelease=
|
|
|
|
ToolsTreePackages=
|
|
|
|
RuntimeTrees=
|
2023-10-25 22:15:29 +00:00
|
|
|
RuntimeSize=
|
2023-09-26 14:39:34 +00:00
|
|
|
```
|
|
|
|
---
|
|
|
|
```
|
|
|
|
mkosi.nspawn
|
|
|
|
```
|
2023-10-25 22:15:29 +00:00
|
|
|
```ini
|
|
|
|
[Exec]
|
|
|
|
Boot=off|on
|
|
|
|
Ephemeral=
|
|
|
|
ProcessTwo=
|
|
|
|
Parameters=
|
|
|
|
Enviroment=
|
|
|
|
User=
|
|
|
|
WorkingDirectory=
|
|
|
|
PivotRoot=
|
|
|
|
*Capability=
|
|
|
|
*DropCapability=
|
|
|
|
*AmbientCapability=
|
|
|
|
NoNewPrivileges=
|
|
|
|
KillSignal=
|
|
|
|
Personality=
|
|
|
|
*MachineID=
|
|
|
|
*PrivateUsers=
|
|
|
|
NotifyReady=
|
|
|
|
SystemCallFilter=
|
|
|
|
LimitCPU=
|
|
|
|
LimitFSIZE=
|
|
|
|
LimitDATA=
|
|
|
|
LimitSTACK=
|
|
|
|
LimitCORE=
|
|
|
|
LimitRSS=
|
|
|
|
LimitNOFILE=
|
|
|
|
LimitAS=
|
|
|
|
LimitNPROC=
|
|
|
|
LimitMEMLOCK=
|
|
|
|
LimitLOCKS=
|
|
|
|
LimitSIGPENDING=
|
|
|
|
LimitMSGQUEUE=
|
|
|
|
LimitNICE=
|
|
|
|
LimitRTPRIO=
|
|
|
|
LimitRTTIME=
|
|
|
|
OOMScoreAdjust=
|
|
|
|
CpuAffinity=
|
|
|
|
Hostname=
|
|
|
|
ResolvConf=
|
|
|
|
Timezone=
|
|
|
|
Linkjournal=
|
|
|
|
SuppressSync=
|
2023-09-26 14:39:34 +00:00
|
|
|
|
2023-10-25 22:15:29 +00:00
|
|
|
[Files]
|
|
|
|
ReadOnly=
|
|
|
|
Volatile=
|
|
|
|
*Bind=
|
|
|
|
*BindReadOnly=
|
|
|
|
*BindUser=
|
|
|
|
*TemporaryFileSystem=
|
|
|
|
*Inaccessible=
|
|
|
|
*Overlay=
|
|
|
|
*OverlayReadOnly=
|
|
|
|
*PrivateUsersOwnership=
|
|
|
|
|
|
|
|
[Network]
|
|
|
|
Private=
|
|
|
|
*VirtualEthernet=
|
|
|
|
*VirtualEthernetExtra=
|
|
|
|
*Interface=
|
|
|
|
*MACVLAN=
|
|
|
|
*IPVLAN=
|
|
|
|
*Bridge=
|
|
|
|
*Zone=
|
|
|
|
*Port=
|
|
|
|
|
|
|
|
```
|