DOKK / manpages / debian 11 / ostree / ostree-admin-os-init.1.en
OSTREE ADMIN OS-INI(1) ostree admin os-init OSTREE ADMIN OS-INI(1)

ostree-admin-os-init - Initialize empty state for a given operating system

ostree admin os-init {STATEROOT}

Initializes an new stateroot (AKA "osname") for an operating system. Ensures that the core subdirectories of /var (/tmp, /lib, /run, and /lock) exist and initialize the given STATEROOT as OSTree stateroot. Each deployment location is comprised of a single shared var and a set of deployments (chroots).

$ ostree admin os-init exampleos


ostree/deploy/exampleos initialized as OSTree root
OSTree