Bind-mount vfs directories for each stage
Many of the stages need it anyway.
This commit is contained in:
parent
658d691174
commit
f6023ed78b
4 changed files with 20 additions and 40 deletions
12
README.md
12
README.md
|
|
@ -35,11 +35,13 @@ modifies a file system tree. Pipelines are defined as JSON files like this one:
|
|||
}
|
||||
```
|
||||
|
||||
`osbuild` runs each of stages in turn, somewhat isolating them into mount and
|
||||
pid namespaces. It injects the `options` object with a `tree` key pointing to
|
||||
the file system tree and passes that to the stage via its `stdin`. Each stage
|
||||
has private `/tmp` and `/var/tmp` directories that are deleted after the stage
|
||||
is run. Stages may have side effects: the `io.weldr.qcow2` stage in the above
|
||||
`osbuild` runs each of the stages in turn, isolating them into mount and pid
|
||||
namespaces. It injects the `options` object with a `tree` key pointing to the
|
||||
file system tree and passes that to the stage via its `stdin`. Each stage has
|
||||
private `/tmp` and `/var/tmp` directories that are deleted after the stage is
|
||||
run. osbuild also bind-mounts `/dev`, `/proc`, and `/sys` into the tree.
|
||||
|
||||
Stages may have side effects: the `io.weldr.qcow2` stage in the above
|
||||
example packs the tree into a `qcow2` image.
|
||||
|
||||
## Running
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue