Reference

etc-files feature

What it does

Files under /etc, by path. Receivers that render files send them here too.

Use it

Every system has this feature: Vessel adds it to every configuration, so it never goes in the feature list. This part of a system configuration gives it items:

Example: feature-etc-files-example

(import (vessel system))

;; Paths are relative to /etc. A (path . text) pair is short for an
;; etc-file.
(system-configuration
  etc-files:
    (list (etc-file path: "motd" text: "Welcome to harbor.\n")
          '("nanorc" . "set tabsize 4\nset autoindent\n"))
  features: %base-features)

Verified

A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.

Options

None. This feature type takes no configuration.

What it adds

It sends nothing to other feature types.

What it receives

  • etc-file: A file under /etc, with its lines' origins or as text.

Used in

Created with Sigil