k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/jobs/e2e_node/crio/templates/base/imagefs.yaml (about)

     1  ---
     2  storage:
     3    files:
     4      - path: /etc/containers/storage.conf
     5        contents:
     6          local: 50-storage.conf
     7        mode: 0644
     8    disks:
     9    - device: /dev/disk/by-id/coreos-boot-disk
    10      wipe_table: false
    11      partitions:
    12      - number: 4
    13        label: root
    14        # Allocate at least 8 GiB to the rootfs. See NOTE above about this.
    15        size_mib: 8192
    16        resize: true
    17      - size_mib: 0
    18        label: imagefs
    19    filesystems:
    20      - path: /var/lib/imagefs
    21        device: /dev/disk/by-partlabel/imagefs
    22        format: ext4
    23        with_mount_unit: true
    24  systemd:
    25    units:
    26      - name: label-graphroot.service
    27        enabled: true
    28        contents: |
    29          [Unit]
    30          Description=Label Graphroot
    31          After=crio-install.service
    32  
    33          [Service]
    34          Type=oneshot
    35          ExecStart=rpm-ostree install \
    36            -y \
    37            --apply-live \
    38            --allow-inactive \
    39            policycoreutils-python-utils
    40          ExecStart=semanage fcontext -a -e /var/lib/containers /var/lib/imagefs
    41          ExecStart=restorecon -R -v /var/lib/imagefs
    42  
    43          [Install]
    44          WantedBy=multi-user.target