format and partition data disk
support only one data disk for now
This commit is contained in:
parent
c80ec7a6f6
commit
8b6c42e1c5
3 changed files with 23 additions and 6 deletions
|
@ -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 }
|
||||
|
|
Reference in a new issue