From c0dfe0f218f3d85f22b45404b75ea17c99e4b288 Mon Sep 17 00:00:00 2001 From: regexowl Date: Thu, 14 Mar 2024 14:18:13 +0100 Subject: [PATCH] V2Wizard: Disable changing of root partition This makes the drop down for root partition disabled, preventing the user from creating a configuration without a root partition. Option to add suffix was also removed for mount points which don't allow suffixes. --- .../FileSystem/FileSystemConfiguration.tsx | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx b/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx index 9a1e6162..481a1654 100644 --- a/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx +++ b/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx @@ -173,20 +173,27 @@ const Row = ({ partition }: RowPropTypes) => { return ( - + - - - - xfs - + {partition.mountpoint !== '/' && + !partition.mountpoint.startsWith('/boot') && + !partition.mountpoint.startsWith('/usr') ? ( + + + + ) : ( + + )} + + xfs + - + - +