-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lenovo-x1: new disk partitioning scheme
New disk configuration provides grounds for upcoming features, such as AB software updates and Storage VM and many more. Signed-off-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
- Loading branch information
1 parent
70dcec0
commit 1794271
Showing
2 changed files
with
168 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
_: { | ||
disko.devices = { | ||
disk.disk1 = { | ||
device = "DRIVE_PATH"; | ||
type = "disk"; | ||
content = { | ||
type = "gpt"; | ||
partitions = { | ||
boot = { | ||
name = "boot"; | ||
size = "1M"; | ||
type = "EF02"; | ||
}; | ||
esp_a = { | ||
name = "ESP_A"; | ||
size = "500M"; | ||
type = "EF00"; | ||
content = { | ||
type = "filesystem"; | ||
format = "vfat"; | ||
mountpoint = "/boot"; | ||
mountOptions = ["umask=0077"]; | ||
}; | ||
}; | ||
esp_b = { | ||
name = "ESP_B"; | ||
size = "500M"; | ||
type = "EF00"; | ||
content = { | ||
type = "filesystem"; | ||
format = "vfat"; | ||
mountOptions = ["umask=0077"]; | ||
}; | ||
}; | ||
# LVM pool that is going to be encrypted | ||
other_1 = { | ||
name = "lvm_pv_1"; | ||
size = "250G"; | ||
content = { | ||
type = "lvm_pv"; | ||
vg = "pool"; | ||
}; | ||
}; | ||
# LVM pool that is going to be passed to the Storage VM | ||
other_2 = { | ||
name = "lvm_pv_2"; | ||
size = "100%"; | ||
content = { | ||
type = "lvm_pv"; | ||
vg = "vmstore"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
lvm_vg = { | ||
pool = { | ||
type = "lvm_vg"; | ||
lvs = { | ||
root_a = { | ||
size = "50G"; | ||
content = { | ||
type = "filesystem"; | ||
format = "ext4"; | ||
mountpoint = "/"; | ||
mountOptions = [ | ||
"defaults" | ||
]; | ||
}; | ||
}; | ||
vm_storage_a = { | ||
size = "30G"; | ||
content = { | ||
type = "filesystem"; | ||
format = "ext4"; | ||
mountpoint = "/vmstore"; | ||
mountOptions = [ | ||
"defaults" | ||
]; | ||
}; | ||
}; | ||
reserved_a = { | ||
size = "10G"; | ||
content = { | ||
type = "filesystem"; | ||
format = "ext4"; | ||
mountOptions = [ | ||
"defaults" | ||
]; | ||
}; | ||
}; | ||
root_b = { | ||
size = "50G"; | ||
content = { | ||
type = "filesystem"; | ||
format = "ext4"; | ||
mountOptions = [ | ||
"defaults" | ||
]; | ||
}; | ||
}; | ||
vm_storage_b = { | ||
size = "30G"; | ||
content = { | ||
type = "filesystem"; | ||
format = "ext4"; | ||
mountOptions = [ | ||
"defaults" | ||
]; | ||
}; | ||
}; | ||
reserved_b = { | ||
size = "10G"; | ||
content = { | ||
type = "filesystem"; | ||
format = "ext4"; | ||
mountOptions = [ | ||
"defaults" | ||
]; | ||
}; | ||
}; | ||
gp_storage = { | ||
# general purpose storage | ||
size = "50G"; | ||
content = { | ||
type = "filesystem"; | ||
format = "ext4"; | ||
mountOptions = [ | ||
"defaults" | ||
]; | ||
}; | ||
}; | ||
recovery = { | ||
size = "100%FREE"; | ||
content = { | ||
type = "filesystem"; | ||
format = "ext4"; | ||
mountOptions = [ | ||
"defaults" | ||
]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
vmstore = { | ||
# Dedicated partition for StorageVM | ||
type = "lvm_vg"; | ||
lvs = { | ||
storagevm = { | ||
size = "100%FREE"; | ||
content = { | ||
type = "filesystem"; | ||
format = "ext4"; | ||
mountOptions = [ | ||
"defaults" | ||
]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters