Skip to content

Commit

Permalink
webui: Remove obsolete check for btrfs reformat support
Browse files Browse the repository at this point in the history
Support for reformatting of btrfs volumes was added in #4970.
  • Loading branch information
vojtechtrefny committed Aug 11, 2023
1 parent 5c7b9b0 commit dbdbd56
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ui/webui/src/components/storage/MountPointMapping.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ const MountPointMappingContent = ({ deviceData, partitioningData, dispatch, idPr
}, [deviceData, requests, setIsFormValid]);

const handleRequestChange = (mountpoint, device, newRequestId, reformat) => {
const data = deviceData[device];
const _requests = requests.map(row => {
const newRow = { ...row };
if (row["request-id"] === newRequestId) {
Expand All @@ -448,11 +447,6 @@ const MountPointMappingContent = ({ deviceData, partitioningData, dispatch, idPr
newRow.reformat = false;
}

// TODO: Anaconda does not support formatting btrfs yet
if (row["device-spec"] !== device && data?.["format-type"] === "btrfs") {
newRow.reformat = false;
}

// Always reformat the root partition
if (mountpoint === "/") {
newRow.reformat = true;
Expand Down

0 comments on commit dbdbd56

Please sign in to comment.