Wizard: Replace /usr path with sub-directories by /usr on Recreate

Sub-directories for `/usr` prefix are no longer supported in file system configuration. This replaces the possible erroneous path with a valid one so the user is not able to send an invalid image request via Recreate action.
This commit is contained in:
regexowl 2023-11-14 11:28:54 +01:00 committed by Sanne Raymaekers
parent 3036577b31
commit c2cd4bed97

View file

@ -465,7 +465,9 @@ const requestToState = (composeRequest, distroInfo, isProd, enableOscap) => {
for (const fsc of fs) {
const [size, unit] = parseSizeUnit(fsc.min_size);
fileSystemConfiguration.push({
mountpoint: fsc.mountpoint,
mountpoint: fsc.mountpoint.includes('/usr/')
? '/usr'
: fsc.mountpoint,
size,
unit,
});