-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: Add new integration layer between anaconda and cockpit storage #72
Conversation
@@ -58,6 +58,7 @@ import { | |||
import "./MountPointMapping.scss"; | |||
|
|||
const _ = cockpit.gettext; | |||
const cmpm = JSON.parse(window.localStorage.getItem("cockpit_mount_points")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cockpit is no longer exporting this information.
@KKoukiou, could you rebase this? Thanks! |
I made a version of this that works with cockpit-project/cockpit#19352: https://github.com/mvollmer/anaconda-webui/tree/cockpit-storage cockpit-project/cockpit#19352 will not change incompatibly any more. |
f01f3f3
to
d3e398d
Compare
I have pushed my version here. |
d3e398d
to
e421bf3
Compare
4a187e1
to
79d8d89
Compare
c6f8b87
to
8a26fe7
Compare
2c4f311
to
ba42dc5
Compare
I am seeing an issue: if I go to "Mount point assignment", then back and then to "Mount point assignment" again, required and recommended rows disappear. I hit it for example after creating one 10G ext4 partition (created in shell or via cockpit-storage). Rescan before going to the "Mount point assignment" makes the required/recommendend mount points to appear again. |
6f82b02
to
4326a56
Compare
Nice! I keep thinking that as a user, I would like to see the summary of what is being done immediately after "returning to installation", to double check whether Anaconda has correctly understood what I want to do. Now I have to fill out the account information before I can see the summary. Thus, the account stuff gets "in the way" of finishing the storage configuration. |
I agree. @garrett can you give this some thought? |
Sure, that makes sense. I thought Cockpit doesn't track the changes, however, which prevented us from showing this? I wanted that too, but was told that Cockpit doesn't track the changes and Anaconda doesn't know about the changes either. So I don't know how we could even get this information or what it would be like. Plus, at this stage, there is nothing to be done, as it was already done. Cockpit, via udisks, doesn't queue up changes, but acts on them immediately. |
All the information we present in the review page, (which partitions have which mount points etc) are already present when that dialog appears that allows us to exit storage mode. We can add these information in that dialog if you like. |
5309469
to
d14a189
Compare
This is a 'bug' / 'feature'. you can remove the row with the trash icon the the next will be enabled. We dont want the user to submit a visibly incomplete form. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you.
Brave work!
05c442e
to
edb0f47
Compare
This commit introduces a higher level of integration between Anaconda Web UI and Cockpit storage. When users perform advanced storage configuration, their storage settings will now seamlessly sync with Anaconda web UI. Specifically, selected mount points and configured LUKS devices will be automatically detected and utilized during installation, streamlining the process for users. This enhancement aims to improve the user experience and reduce manual configuration efforts during installation. Resolves: rhbz#2263971
Note: This is a temporary workaround which should be obsoleted and removed once https://issues.redhat.com/browse/INSTALLER-3898 is fixed.
…ks when configuring manually storage
…d storage" scenario
edb0f47
to
33dfc8e
Compare
Blocked on: