Skip to content

Commit

Permalink
web: Fix LVM detection
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Apr 4, 2024
1 parent 613e837 commit 7b75c3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/storage/ProposalSettingsSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ export default function ProposalSettingsSection({
});
};

const lvm = settings.target === "newLvmVg" || settings.target === "reusedLvmVg";
const encryption = settings.encryptionPassword !== undefined && settings.encryptionPassword.length > 0;
const { volumes = [], installationDevices = [] } = settings;
const bootDevice = availableDevices.find(d => d.name === settings.bootDevice);
Expand Down Expand Up @@ -490,7 +491,7 @@ export default function ProposalSettingsSection({
<ProposalVolumes
volumes={volumes}
templates={usefulTemplates()}
options={{ lvm: settings.lvm, encryption }}
options={{ lvm, encryption }}
isLoading={isLoading && settings.volumes === undefined}
onChange={changeVolumes}
/>
Expand Down

0 comments on commit 7b75c3f

Please sign in to comment.