Created
October 5, 2017 14:50
-
-
Save bzub/edfd2a69d47de1fa3375d9e855ccc272 to your computer and use it in GitHub Desktop.
CoreOS Ignition + OEM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ignition": { | |
"config": {}, | |
"timeouts": {}, | |
"version": "2.1.0" | |
}, | |
"networkd": {}, | |
"passwd": {}, | |
"storage": { | |
"files": [{ | |
"filesystem": "oem", | |
"group": { | |
"id": 500 | |
}, | |
"path": "/testfile", | |
"user": { | |
"id": 500 | |
}, | |
"contents": { | |
"source": "data:,Hello%2C%20world!", | |
"verification": {} | |
}, | |
"mode": 420 | |
}, { | |
"filesystem": "oem", | |
"group": {}, | |
"path": "/grub.cfg", | |
"user": {}, | |
"contents": { | |
"source": "data:,%23%20CoreOS%20GRUB%20settings%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%0Aset%20oem_id%3D%22gce%22%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0Aset%20linux_append%3D%22ipv6.disable%3D1%22%0A%0A%23%20GCE%20only%20has%20a%20serial%20console.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0Aset%20linux_console%3D%22console%3DttyS0%2C115200n8%22%20%20%20%20%20%20%20%20%20%20%20%0Aserial%20com0%20--speed%3D115200%20--word%3D8%20--parity%3Dno%20%20%20%20%20%20%0Aterminal_input%20serial_com0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0Aterminal_output%20serial_com0%0A", | |
"verification": {} | |
} | |
}], | |
"filesystems": [{ | |
"mount": { | |
"device": "/dev/disk/by-partlabel/OEM", | |
"format": "ext4", | |
"label": "OEM" | |
}, | |
"name": "oem" | |
}] | |
}, | |
"systemd": {} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
storage: | |
filesystems: | |
- name: oem | |
mount: | |
device: /dev/disk/by-partlabel/OEM | |
format: ext4 | |
wipe_filesystem: false | |
label: OEM | |
files: | |
- path: /testfile | |
filesystem: oem | |
contents: | |
inline: Hello, world! | |
mode: 0644 | |
user: | |
id: 500 | |
group: | |
id: 500 | |
- path: /grub.cfg | |
filesystem: oem | |
contents: | |
inline: | | |
# CoreOS GRUB settings | |
set oem_id="gce" | |
set linux_append="ipv6.disable=1" | |
# GCE only has a serial console. | |
set linux_console="console=ttyS0,115200n8" | |
serial com0 --speed=115200 --word=8 --parity=no | |
terminal_input serial_com0 | |
terminal_output serial_com0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment