Skip to content

Instantly share code, notes, and snippets.

@neitsab
Last active April 5, 2022 20:45
Show Gist options
  • Select an option

  • Save neitsab/fd8c22a778b9c9c3e563f165feb2689a to your computer and use it in GitHub Desktop.

Select an option

Save neitsab/fd8c22a778b9c9c3e563f165feb2689a to your computer and use it in GitHub Desktop.
All possible parameters for mkosi.default as of version 10; uncomment or remove declarations as needed.
[Distribution]
; Distribution=
; Release=
; Repositories=
; Mirror=
; Architecture=
[Output]
; Format=
; Output=
; OutputSplitRoot=
; OutputSplitVerity=
; OutputSplitKernel=
; OutputDirectory=
; Force=
; Bootable=
; BootProtocols=
; GPTFirstLBA=
; KernelCommandLine=
; SecureBoot=
; SecureBootKey=
; SecureBootCertificate=
; SecureBootValidDays=
; SecureBootCommonName=
; ReadOnly=
; Encrypt=
; Verity=
; Compress=
; CompressFs=
; CompressOutput=
; Mksquashfs=
; QCow2=
; NoChown=
; TarStripSELinuxContext=
; Hostname=
; ImageVersion=
; ImageId=
; WithUnifiedKernelImages=
; HostonlyInitrd=
; UsrOnly=
; SplitArtifacts=
[Packages]
; BasePackages=
; Packages=
; WithDocs=
; WithTests=
; Cache=
; ExtraTrees=
; SkeletonTrees=
; RemoveFiles=
; BuildScript=
; BuildEnvironment=
; BuildSources=
; SourceFileTransfer=
; SourceFileTransferFinal=
; SourceResolveSymlinks=
; SourceResolveSymlinksFinal=
; BuildDirectory=
; IncludeDirectory=
; InstallDirectory=
; BuildPackages=
; SkipFinalPhase=
; PrepareScript=
; PostInstallationScript=
; FinalizeScript=
; WithNetwork=
; NSpawnSettings=
[Partitions]
; RootSize=
; ESPSize=
; SwapSize=
; HomeSize=
; SrvSize=
[Validation]
; CheckSum=
; Sign=
; Key=
; BMap=
; Password=
; PasswordIsHashed=
; Autologin=
[Host]
; ExtraSearchPaths=
; QemuHeadless=
; QemuSmp=
; QemuMem=
; NetworkVeth=
; Ephemeral=
; Ssh=
; SshKey=
; SshTimeout=
@neitsab
Copy link
Author

neitsab commented Apr 5, 2022

Changing commenting sign (;) or inverting/uncommenting all

  • GUI: Ctrl+h to search and replace in many editors
  • CLI: sed -i 's/^; //g' mkosi.default.all to uncomment everything and sed -i 's/^;/#/g' mkosi.default.all to switch comment sign to #

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment