coreos / fedora-coreos-docs

Documentation for Fedora CoreOS
https://docs.fedoraproject.org/en-US/fedora-coreos/
Other
50 stars 121 forks source link

Add docs examples for "LUKS volumes with discard option & perf-no_read_workqueue/perf-no_write_workqueue" #512

Open travier opened 1 year ago

travier commented 1 year ago

See:

travier commented 1 year ago

We should also probably split the LUKS Storage configuration part into its own page.

feidens commented 1 year ago

For the meantime if one needs a full (butane yaml) example see below. If I can help writing the documentation in some form then let me know.

variant: fcos
version: 1.5.0
passwd:
  users:
    - name: core
      ssh_authorized_keys_local:
        - your_key_file.pub
storage:
  disks:
   - device: /dev/vda
     partitions:
       - label: root
         number: 4
         # 0 means to use all available space
         size_mib: 0
         resize: true
  luks:
    - name: root
      label: luks-root
      device: /dev/disk/by-partlabel/root
      clevis:
        tpm2: true
      # key_file:
      #  local: luks.key
      wipe_volume: true
      discard: true
      options:
        - --pbkdf=argon2id
      open_options:
        - --perf-no_read_workqueue
        - --perf-no_write_workqueue
  filesystems:
    - device: /dev/mapper/root
      format: xfs
      wipe_filesystem: true
      label: root

FYI: Without the storage.disks.partitions part the Growth step failed.