reintroduce data disks

This commit is contained in:
Pim Kunis 2023-06-08 23:05:04 +02:00
parent 9f3fab470d
commit 49720ab12a
3 changed files with 36 additions and 1 deletions

View file

@ -40,10 +40,30 @@ runcmd:
- dhclient
- locale-gen
%{ if data_share != "" }
%{ 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
%{ endif }
%{ if data_disk || data_share }
mounts:
%{ if data_disk != "" }
- ["data.1", "/mnt/data"]
%{ endif }
%{ if data_share != "" }
- ["data", "${data_share}", "9p", "trans=virtio,rw", "0", "0"]
%{ endif }
%{ endif }
%{ if fixed_dns != "" }
manage_resolv_conf: true