From c2cd4bed971b92e55b9dc81f37812e5dbf3bec15 Mon Sep 17 00:00:00 2001 From: regexowl Date: Tue, 14 Nov 2023 11:28:54 +0100 Subject: [PATCH] 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. --- src/Components/CreateImageWizard/CreateImageWizard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Components/CreateImageWizard/CreateImageWizard.js b/src/Components/CreateImageWizard/CreateImageWizard.js index cd695251..9f117c39 100644 --- a/src/Components/CreateImageWizard/CreateImageWizard.js +++ b/src/Components/CreateImageWizard/CreateImageWizard.js @@ -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, });