# Layout Elemental OEM configuration file
#
# This file is part of Elemental and will get reset during upgrades.
#
# Before you change this file manually,
# consider copying this file to /usr/local/cloud-config or
# copy the file with a prefix starting by 90, e.g. /oem/91_custom.yaml
name: "Rootfs Layout Settings"
stages:
  rootfs:
    - if: '[ -f "/run/elemental/recovery_mode" ]'
      name: "Layout configuration for recovery"
      files:
        - path: /run/elemental/config.d/layout.yaml
          content: |
            mount:
              ephemeral:
                type: tmpfs
                size: 25%
                paths: ['/srv', '/etc', '/var', '/root']
