Bug 2336488 - "Launch storage editor" is greyed out when installer launches, have to proceed to step 2 and return to step 1 before it works
Summary: "Launch storage editor" is greyed out when installer launches, have to procee...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda-webui
Version: rawhide
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Katerina Koukiou
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-09 00:54 UTC by Adam Williamson
Modified: 2025-01-22 14:52 UTC (History)
4 users (show)

Fixed In Version: anaconda-webui-22-1.fc42
Clone Of:
Environment:
Last Closed: 2025-01-22 14:52:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2025-01-09 00:54:21 UTC
In current Fedora Rawhide Workstation live, when webui first runs, if you open the kebab menu, the "Launch storage editor" link is greyed out - even though it's supposed to be active from this page ("Installation method"). To get it to activate you have to pick some option and hit Next to reach Storage configuration, then hit Back to get back to Installation method. Now it'll be active.

I think this is because nothing does `setCurrentStepId("installation-method");` when the installer first starts up, but I tried this:

--- a/src/components/app.jsx
+++ b/src/components/app.jsx
@@ -86,6 +86,8 @@ export const Application = ({ conf, dispatch, isFetching, onCritFail, osRelease,
 
     // On live media rebooting the system will actually shut it off
     const title = cockpit.format(_("$0 installation"), osRelease.PRETTY_NAME);
+    // Set initial step ID
+    setCurrentStepId("installation-method");
 
     return (
         <>

...and it seems to make the installer crash, so I don't know the right way to fix this.

Comment 1 Adam Williamson 2025-01-09 19:54:09 UTC
Tried this instead:

--- a/src/components/app.jsx
+++ b/src/components/app.jsx
@@ -54,7 +54,7 @@ export const ApplicationLoading = () => (
 export const Application = ({ conf, dispatch, isFetching, onCritFail, osRelease, reportLinkURL }) => {
     const [storeInitialized, setStoreInitialized] = useState(false);
     const [showStorage, setShowStorage] = useState(false);
-    const [currentStepId, setCurrentStepId] = useState();
+    const [currentStepId, setCurrentStepId] = useState("installation-method");
     const address = useAddress();
     const { path } = usePageLocation();

it doesn't crash, but also doesn't fix the bug, so I'm a bit stumped.

Comment 2 Katerina Koukiou 2025-01-21 15:21:25 UTC
Upstream fix: https://github.com/rhinstaller/anaconda-webui/pull/602

Comment 3 Fedora Update System 2025-01-22 12:29:10 UTC
FEDORA-2025-cd32402343 (anaconda-webui-22-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-cd32402343

Comment 4 Fedora Update System 2025-01-22 14:52:56 UTC
FEDORA-2025-cd32402343 (anaconda-webui-22-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.