mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-14 21:12:37 +01:00
Sample butane config (not sure how much of this is still needed):
```
variant: flatcar
version: 1.1.0
kernel_arguments:
should_exist:
- flatcar.immutable=1
storage:
directories:
- path: /tmp
overwrite: true
mode: 01777
user:
id: 0
files:
- path: /etc/machine-id
overwrite: true
mode: 0644
user:
id: 0
contents:
inline: ''
- path: /etc/tmpfiles.d/etc-tmp.conf
overwrite: true
mode: 0644
contents:
inline: |
D /tmp/.etc-ssh 0700 root root - -
D /tmp/.etc-ssh.work 0700 root root - -
- path: /etc/fstab
overwrite: true
mode: 06444
user:
id: 0
contents:
inline: |
/mnt/stateful/var /var none bind,x-systemd.requires=/mnt/stateful 0 0
/mnt/stateful/home /home none bind,x-systemd.requires=/mnt/stateful 0 0
/etc/ssh /etc/ssh overlay lowerdir=/etc/ssh,upperdir=/tmp/.ssh,workdir=/tmp/.etc.work,noauto,x-systemd.required-by=sshd-keygen.service 0 0
disks:
- device: /dev/vda
partitions:
- label: ROOT
number: 9
size_mib: 512
resize: true
- label: ROOTVERITY
number: 10
size_mib: 16
- label: STATE
number: 11
size_mib: 0
filesystems:
- device: /dev/disk/by-partlabel/ROOT
format: ext4
label: ROOT
wipe_filesystem: true
- device: /dev/disk/by-partlabel/STATE
format: ext4
label: STATE
path: /mnt/stateful
mount_options:
- noexec
with_mount_unit: true
```
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>