diff --git a/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx b/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx index 481a1654..b9fac99c 100644 --- a/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx +++ b/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx @@ -28,6 +28,7 @@ import { selectImageTypes, removePartition, selectPartitions, + changePartitionUnit, } from '../../../../store/wizardSlice'; import UsrSubDirectoriesDisabled from '../../UsrSubDirectoriesDisabled'; import { ValidatedTextInput } from '../../ValidatedTextInput'; @@ -36,6 +37,7 @@ export type Partition = { id: string; mountpoint: string; min_size: string; + unit: Units; }; const FileSystemConfiguration = () => { @@ -50,7 +52,8 @@ const FileSystemConfiguration = () => { addPartition({ id, mountpoint: '/home', - min_size: '1', + min_size: UNIT_GIB.toString(), + unit: 'GiB', }) ); }; @@ -163,7 +166,6 @@ const getSuffix = (mountpoint: string) => { }; const Row = ({ partition }: RowPropTypes) => { - const [units, setUnits] = useState('MiB'); const dispatch = useAppDispatch(); const handleRemovePartition = (id: string) => { @@ -188,10 +190,10 @@ const Row = ({ partition }: RowPropTypes) => { xfs - + - +