format and partition data disk

support only one data disk for now
This commit is contained in:
Pim Kunis 2023-04-07 17:42:54 +02:00
parent c80ec7a6f6
commit 8b6c42e1c5
3 changed files with 23 additions and 6 deletions

View file

@ -33,3 +33,19 @@ runcmd:
- dhclient -r
- dhclient
- locale-gen
%{ if data_disk }
device_aliases:
data: /dev/vdb
disk_setup:
data:
table_type: 'gpt'
layout: true
overwrite: false
fs_setup:
- label: 'data'
filesystem: 'ext4'
device: data.1
overwrite: false
mounts:
- ["data.1", "/mnt/data"]
%{ endif }