allow discards

main
Ricard Illa 2022-10-19 18:28:50 +02:00
parent a8e2e7dece
commit 252ec87fe3
2 changed files with 6 additions and 2 deletions

View File

@ -40,11 +40,13 @@ all:
source_uuid: "202c924c-ee53-4321-9efd-1f776e939702" source_uuid: "202c924c-ee53-4321-9efd-1f776e939702"
key: "/luks_key.asc:gpg" key: "/luks_key.asc:gpg"
remdev: "/dev/mmcblk0p2" remdev: "/dev/mmcblk0p2"
options: "--allow-discards"
- name: "Samsung SSD 870" - name: "Samsung SSD 870"
target: "disk1" target: "disk1"
source_uuid: "247ea237-54ce-45d2-9974-04344c06aba4" source_uuid: "247ea237-54ce-45d2-9974-04344c06aba4"
key: "/luks_key.asc:gpg" key: "/luks_key.asc:gpg"
remdev: "/dev/mmcblk0p2" remdev: "/dev/mmcblk0p2"
options: "--allow-discards"
mounts: mounts:

View File

@ -3,9 +3,11 @@
# {{ entry.name }} # {{ entry.name }}
target='{{ entry.target }}' target='{{ entry.target }}'
source='/dev/disk/by-uuid/{{ entry.source_uuid }}' source='/dev/disk/by-uuid/{{ entry.source_uuid }}'
{% if entry.key is defined %}key={{ entry.key }} {% if entry.key is defined %}key='{{ entry.key }}'
{% endif %} {% endif %}
{% if entry.remdev is defined %}remdev={{ entry.remdev }} {% if entry.remdev is defined %}remdev='{{ entry.remdev }}'
{% endif %}
{% if entry.options is defined %}options='{{ entry.options }}'
{% endif %} {% endif %}
{% endfor %} {% endfor %}