[partition] Add an option to show/hide LVM buttons.

This commit is contained in:
Adriaan de Groot 2024-12-20 12:30:33 +01:00
parent 714a085556
commit a192673704
2 changed files with 13 additions and 0 deletions

View file

@ -247,6 +247,13 @@ defaultFileSystemType: "ext4"
# to cypher their disk when installing in enterprise (for exemple).
#preCheckEncryption: false
# LVM support
#
# There is only one sub-key available, *enable* (defaults to true)
# which can be used to show (default) or hide the LVM buttons in the partitioning module.
lvm:
enable: true
# Partition layout.
#
# This optional setting specifies a custom partition layout.

View file

@ -20,6 +20,12 @@ properties:
mountPoint: { type: string }
additionalProperties: false
lvm:
type: object
properties:
enable: { type: boolean, default: true }
additionalProperties: false
userSwapChoices: { type: array, items: { type: string, enum: [ none, reuse, small, suspend, file ] } }
# ensureSuspendToDisk: { type: boolean, default: true } # Legacy
# neverCreateSwap: { type: boolean, default: false } # Legacy