{% extends "layout.html" %} {% block body %}

The following disk will be erased:

{% for disk in blockdevs["blockdevices"] if disk["name"] == diskname %} {% set disk_size = disk['size'] %}

{{ disk['name'] }}:   {{ disk['model'] }} - {{ disk['tran'] }} disk ({{(disk['size']/1024000000)|round(0)|int }} GB) - Serial: {{ disk['serial'] }}

{% if disk['maj:min'] == "252:0" %}
swap

{% endif %} {% set colors = ['teal', '#E69F00', '#56B4E9', '#009E73', '#0072B2', '#D55E00', '#CC79A7'] %}
{% for child in disk['children'] %}
  {{ child['name'] }}
{% endfor %}
{% for child in disk['children'] %} {% endfor %}
Partition Type Mount Point Label Size
{{ child['name'] }} {{ child['fstype'] }} {{ child['mountpoint'] }} {{ child['label'] }} {{ (child['size']/1024000000)|round(2) }} GiB
{% endfor %}

This layout will be created:

{% for disk in blockdevs["blockdevices"] if disk["name"] == diskname %} {% set disk_size = disk['size'] %}

New GPT Partition Table on {{ disk['name'] }}

{% set colors = ['teal', '#E69F00', '#56B4E9', '#009E73', '#0072B2', '#D55E00', '#CC79A7'] %}
{% for partition in partitions['command_set'] if partition['action-type'] == 'newpart' %}
  {{ partition['device'] }}
{% endfor %}
{% for partition in partitions['command_set'] if partition['action-type'] == 'newpart' %} {% endfor %}
Partition Type Mount Point Label Size
{{ partition['device'] }} {{ partition['fstype'] }} {{ partition['mountpoint'] }} {{ partition['label'] }} {{ partition['size'] }}
{% endfor %}
{% endblock %}