Skip to content
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

Home reuse #424

Merged
merged 13 commits into from
Oct 25, 2024
Merged

Home reuse #424

merged 13 commits into from
Oct 25, 2024

Conversation

rvykydal
Copy link
Contributor

@rvykydal rvykydal commented Aug 30, 2024

Requires rhinstaller/anaconda#5814

TODO:

  • run strict linters and fix
  • skip encryption page (instead of disabling checkbox which is a workaround)
  • [FOLLOW-UP ISSUE] add support for unlocking (checkbox similar to reclaim dialog?) - https://issues.redhat.com/browse/INSTALLER-4055
  • check btrfs partition scheme is used in reused system (later maybe add support for other schemes) and btrfs autopartitioning is used
  • polish review screen (for example check the warning about risks)
  • [FOLLOW-UP ISSUE] add destructive e2e test testing booting and installed system - https://issues.redhat.com/browse/INSTALLER-4054
  • consider adding pixel tests to home reuse tests (NO - it is tested on TestStorage.testLocalStandardDisks. OTOH if we hided the option if not available we would require pixel test on its own)
  • run and fix tests
  • [FOLLOW-UP ISSUE] limit to single (Linux) system (no Windows along allowed) or support dual boot with Win? - https://issues.redhat.com/browse/INSTALLER-4056
  • [FOLLOW-UP ISSUE] improve microcopy/wording (option and hints...)
  • limit to Fedora Linux system ?
  • UI according to mockups

src/apis/storage_partitioning.js Outdated Show resolved Hide resolved
request === undefined || request.reformat
? (format ? cockpit.format(_("format as $0"), format) : null)
: ((format === "biosboot") ? format : _("mount"))
);
// FIXME use better JS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's indeed weird to do the inline conditional and then do the if conditional to possibly overwrite it.
Since we have many conditions here, let's do them all in if clauses.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

await partitioningSetHomeReuse({ partitioning: part });
}

if (currentPartitioning?.method === method && method === "AUTOMATIC" && storageScenarioId !== "home-reuse" && currentPartitioning.requests[0].encrypted) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do a multiliner with this please?
It's too long now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

src/components/storage/DiskEncryption.jsx Outdated Show resolved Hide resolved
@@ -0,0 +1,96 @@
#!/usr/bin/python3
#
# Copyright (C) 2022 Red Hat, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/2022/2024

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

test/check-storage-home-reuse Outdated Show resolved Hide resolved
test/check-storage-home-reuse Outdated Show resolved Hide resolved
@rvykydal rvykydal force-pushed the home-reuse-poc branch 2 times, most recently from d29850e to a6fdba8 Compare September 17, 2024 13:35
@rvykydal rvykydal changed the title [WIP] Home reuse poc [WIP] Home reuse Sep 18, 2024
@rvykydal rvykydal force-pushed the home-reuse-poc branch 2 times, most recently from 3793dc9 to 953a65b Compare September 19, 2024 09:41
@rvykydal rvykydal marked this pull request as ready for review October 1, 2024 14:30
@rvykydal rvykydal requested a review from KKoukiou October 1, 2024 14:31
@rvykydal rvykydal changed the title [WIP] Home reuse Home reuse Oct 1, 2024
@rvykydal rvykydal force-pushed the home-reuse-poc branch 4 times, most recently from 03ce162 to e8cf85e Compare October 10, 2024 07:54
@rvykydal
Copy link
Contributor Author

@rvykydal rvykydal force-pushed the home-reuse-poc branch 3 times, most recently from c1cf475 to 21fc223 Compare October 17, 2024 07:40
@KKoukiou
Copy link
Contributor

Did a clean rebase for the test fixes to get in the git history of this.

@KKoukiou KKoukiou merged commit 9f628dd into rhinstaller:main Oct 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants