Skip to content

Commit

Permalink
readme: document user customization
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejbudai committed Nov 10, 2023
1 parent 10a6ef5 commit 200546e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,30 @@ qemu-system-x86_64 -M accel=kvm -cpu host -smp 2 -m 4096 -bios /usr/share/OVMF/O
- `/output` - used for output files
- `/store` - used for the osbuild store
- `/rpmmd` - used for the dnf-json rpm metadata cache

## Adding a user
`osbuild-deploy-container` accepts a `-config` option. `-config` needs to be a path to a JSON formatted file.

Example of such a config:

```json
{
"blueprint": {
"customizations": {
"user": [
{
"name": "foo",
"password": "bar",
"groups": ["wheel"]
}
]
}
}
}
```

Save this config as `output/config.json` and run:

```
sudo podman run --rm -it --privileged -v $(pwd)/output:/output ghcr.io/osbuild/osbuild-deploy-container -imageref quay.io/centos-boot/fedora-tier-1:eln -config /output/config.json
```

0 comments on commit 200546e

Please sign in to comment.