Skip to content

Instantly share code, notes, and snippets.

@jdoss

jdoss/boot.yaml Secret

Created February 6, 2023 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdoss/7783fae724c9b737c2874e9b50d9185b to your computer and use it in GitHub Desktop.
Save jdoss/7783fae724c9b737c2874e9b50d9185b to your computer and use it in GitHub Desktop.
variant: fcos
version: 1.4.0
storage:
files:
- path: /etc/coreos/installer.d/custom.yaml
contents:
inline: |
dest-device: {{ install_drive }}
ignition-file: /etc/install.ign
mode: 0644
- path: /etc/install.ign
contents:
inline: |
{{ install_ignition }}
mode: 0644
systemd:
units:
- name: coreos-installer.service
enabled: true
contents: |
[Unit]
Description=Run CoreOS Installer
Requires=coreos-installer-pre.target
After=coreos-installer-pre.target
OnFailure=emergency.target
OnFailureJobMode=replace-irreversibly
[Service]
Type=oneshot
ExecStart=/usr/bin/coreos-installer install --offline -i /etc/install.ign {{ install_drive }}
ExecStart=/usr/bin/systemctl --no-block reboot
StandardOutput=kmsg+console
StandardError=kmsg+console
[Install]
RequiredBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment