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:
parent
3036577b31
commit
c2cd4bed97
1 changed files with 3 additions and 1 deletions
|
|
@ -465,7 +465,9 @@ const requestToState = (composeRequest, distroInfo, isProd, enableOscap) => {
|
||||||
for (const fsc of fs) {
|
for (const fsc of fs) {
|
||||||
const [size, unit] = parseSizeUnit(fsc.min_size);
|
const [size, unit] = parseSizeUnit(fsc.min_size);
|
||||||
fileSystemConfiguration.push({
|
fileSystemConfiguration.push({
|
||||||
mountpoint: fsc.mountpoint,
|
mountpoint: fsc.mountpoint.includes('/usr/')
|
||||||
|
? '/usr'
|
||||||
|
: fsc.mountpoint,
|
||||||
size,
|
size,
|
||||||
unit,
|
unit,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue