Huge update to the disk selection method. Now support striped or mirrored boot disk(s), and up to 9 disks for data with automatic inclusion of up to 3 parity disks.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
data-${DISK_NUMBER} = {
|
||||
type = "disk";
|
||||
device = "${DISK_PATH}";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
luks = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "crypted-data-${DISK_NUMBER}";
|
||||
keyFile = "/run/secrets/disks/data-disk-${DISK_NUMBER}";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "xfs";
|
||||
mountpoint = "/mnt/data-${DISK_NUMBER}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user