Reference

state-directories feature

What it does

Directories made at boot with their owner and mode, after the mounts that hold them.

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-state-directories-example

(import (vessel system))

;; A directory created at every boot and kept across generations.
;; simple-feature sends fixed items from the configuration itself.
(system-configuration
  features:
    (cons (simple-feature 'backups state-directories-feature
            (list (state-directory path: "/var/lib/backups"
                                   owner: "root" group: "root"
                                   mode: "0700")))
          %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

Its declared extensions target these feature types:

What it receives

  • state-directory: A directory, claimed by its path.

  • mounted: A mounted directory and the service that mounts it.

Used in

No page refers to it yet.

Created with Sigil