summaryrefslogtreecommitdiff
path: root/profiles/README
blob: e02ef6fd8ca485b60b38c52080a43daabd63a6b5 (plain)
  1. Classes and nodes usable by Boxer
  2. =================================
  3. Classes and nodes are YAML files parsed by reclass. See reclass
  4. documentation for more info on its syntax and structure.
  5. Additional syntax needed for parsing by Boxer is covered below.
  6. Classes
  7. -------
  8. Lowercase classes are reusable, (relatively) objective core classes.
  9. Never include documentation, and avoid pkg-auto or pkg-avoid items.
  10. Capital classes (first letter uppercase) and their subclasses are
  11. subjective high-level bundles. Always include documentation.
  12. Nodes
  13. -----
  14. Nodes should only use capital classes, to have all actions documented.
  15. Parameters
  16. ----------
  17. doc: Documentation
  18. doc-headline: Headline for a group of classes
  19. doc-pkg: Description of purpose of pkg lists in this class
  20. doc-tweak: Description of purpose of tweak in this class
  21. pkg: Packages to install
  22. pkg-auto: Packages to mark auto-installed if installed
  23. pkg-avoid: Packages to remove
  24. tweak: Tweaks to apply after package actions
  25. Packages
  26. --------
  27. Packages are binary packages registered in APT.
  28. One way to resolve package lists for classes is to to try mark most
  29. possible packages on an actual system as auto-installed (e.g. hit "M"
  30. with aptitude in fullscreen mode), and then dump the list of remaining
  31. manually installed packages with "apt-mark showmanual".
  32. Tweaks
  33. ------
  34. Tweaks are code snippets executed by a POSIX shell.
  35. Avoid ${...} (reclass use it for parameter interpolation), e.g. by
  36. adding dummy quotes like this: "dpkg-query -Wf='$''{Depends}\n' foo".
  37. Write tweaks for use with debian-installer, using either of below which
  38. will be stripped when generating script target:
  39. * "chroot /target "
  40. * "/target/"