Files
matchbox/examples/ignition/format-disk.yaml
Dalton Hubble 54a16ffda4 examples: Use universal root filesystem
* Use the "root" filesystem from the Ignition universal
base config (path /sysroot)
* No need for custom named filesystem anymore
2016-08-25 14:18:07 -07:00

39 lines
704 B
YAML

---
storage:
disks:
- device: /dev/sda
wipe_table: true
partitions:
- label: ROOT
number: 0
filesystems:
- name: root
mount:
device: "/dev/sda1"
format: "ext4"
create:
force: true
options:
- "-LROOT"
files:
- filesystem: root
path: /home/core/foo
mode: 0644
user:
id: 500
group:
id: 500
contents:
inline: |
Example file contents
{{ if index . "ssh_authorized_keys" }}
passwd:
users:
- name: core
ssh_authorized_keys:
{{ range $element := .ssh_authorized_keys }}
- {{$element}}
{{end}}
{{end}}