OSTREE ADMIN STATERO(1) ostree admin stateroot-init OSTREE ADMIN STATERO(1)

.SH "NAME" ostree-admin-stateroot-init - Initialize empty state for a given operating system

.SH "SYNOPSIS"

.HP 672u

**ostree admin stateroot-init** {STATEROOT}

.SH "DESCRIPTION"

.PP 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).

.SH "EXAMPLE"

.PP **$ ostree admin stateroot-init exampleos**

```


        ostree/deploy/exampleos initialized as OSTree stateroot


    
```

OSTree

---

Document: ostree-admin-stateroot-init(1) from ostree 2026.4-r3 (Chainguard OS)
Source: https://github.com/ostreedev/ostree
