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

feature: detect fedora image and update filesystem #486

Merged
merged 1 commit into from
May 22, 2024

Conversation

cdrage
Copy link
Contributor

@cdrage cdrage commented May 21, 2024

feature: detect fedora image and update filesystem

What does this PR do?

  • Detects if the base image is based upon fedora
  • If it is based on fedora, auto-select the filesystem

Screenshot / video of UI

Screen.Recording.2024-05-21.at.4.28.57.PM.mov

What issues does this PR fix or reference?

Closes #457

How to test this PR?

Select a fedora bootc image or manifest, it will auto-select XFS.

If you select a non-fedora bootc image, it will be default.

Tests also cover new feature

Signed-off-by: Charlie Drage [email protected]

@cdrage cdrage requested a review from a team as a code owner May 21, 2024 20:37
</p>
{#if fedoraDetected}
<p class="text-gray-300 text-xs">
Fedora detected. By default Fedora requires a specific filesystem to be selected. XFS is recommended.
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't 'by default' extraneous? Are there any cases where Fedora doesn't need a filesystem selected?

### What does this PR do?

* Detects if the base image is based upon fedora
* If it is based on fedora, auto-select the filesystem

### Screenshot / video of UI

<!-- If this PR is changing UI, please include
screenshots or screencasts showing the difference -->

### What issues does this PR fix or reference?

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

Closes podman-desktop#457

### How to test this PR?

<!-- Please explain steps to reproduce -->

Select a fedora bootc image or manifest, it will auto-select XFS.

If you select a non-fedora bootc image, it will be default.

Tests also cover new feature

Signed-off-by: Charlie Drage <[email protected]>
@cdrage cdrage force-pushed the check-container branch from 87b9931 to 413c30b Compare May 22, 2024 14:10
@cdrage
Copy link
Contributor Author

cdrage commented May 22, 2024

@deboer-tim Updated with the changes (removed the debugging, updated the fedora detected description)

@cdrage cdrage merged commit 92a9d41 into podman-desktop:main May 22, 2024
5 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.

Detect if using fedora image and prompt / possibly auto-select XFS or ext4.
2 participants