Skip to content

Commit

Permalink
Merge pull request #888 from cgwalters/example-file-valid
Browse files Browse the repository at this point in the history
doc/examples: Make example file path valid
  • Loading branch information
Andrew Jeddeloh authored Nov 22, 2019
2 parents 3e633de + 475731b commit 9278161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ Environment=SYSTEMD_LOG_LEVEL=debug
```
## Create Files on the Root Filesystem

In many cases it is useful to write files to the root filesystem. This example writes a single file to `/foo/bar` on the root filesystem. The contents of the file ("example file") are specified inline in the config using the [data URL scheme][rfc2397].
In many cases it is useful to write files to the root filesystem. This example writes a single file to `/etc/someconfig` on the root filesystem. The contents of the file ("example file") are specified inline in the config using the [data URL scheme][rfc2397].

```json ignition
{
"ignition": { "version": "3.0.0" },
"storage": {
"files": [{
"path": "/foo/bar",
"path": "/etc/someconfig",
"mode": 420,
"contents": { "source": "data:,example%20file%0A" }
}]
Expand Down

0 comments on commit 9278161

Please sign in to comment.