Skip to content

reinstall: Ensure podman is installed - #1105

Merged
cgwalters merged 3 commits into
bootc-dev:mainfrom
omertuc:ep
Feb 12, 2025
Merged

cgwalters merged 3 commits into
bootc-dev:mainfrom
omertuc:ep

Conversation

@omertuc

@omertuc omertuc commented Feb 11, 2025 •

Copy link
Copy Markdown
Contributor

See commit messages

ensure_podman_installed_flowchart

Fixes #1104

@omertuc
omertuc requested a review from cgwalters February 11, 2025 11:25
@omertuc omertuc changed the title See commit messages reinstall: Ensure podman is installed Feb 11, 2025
@omertuc omertuc added the area/system-reinstall-bootc Issues related to system-reinstall-botoc label Feb 11, 2025
@omertuc
omertuc requested a review from vrothberg February 11, 2025 11:26

@vrothberg vrothberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, nice work. Thank you!

@cgwalters cgwalters left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm OK with this as is and my comments can be followups if preferred

Comment thread system-reinstall-bootc/src/podman.rs Resolved
Comment thread system-reinstall-bootc/src/podman.rs Resolved
Comment thread utils/src/command.rs Resolved
@omertuc

omertuc commented Feb 12, 2025

Copy link
Copy Markdown
Contributor Author

Settled on: ensure_podman_installed_flowchart

@omertuc
omertuc force-pushed the ep branch 5 times, most recently from 70bc91b to b66d5b1 Compare February 12, 2025 11:03
@omertuc

omertuc commented Feb 12, 2025

Copy link
Copy Markdown
Contributor Author

If we skip an internal prompt of "Would you like to install podman using your package manager?", the experience is a bit jarring:

straight.to.dnf.mp4

What are your thoughts?

@cgwalters

cgwalters commented Feb 12, 2025 •

Copy link
Copy Markdown
Member

If we skip an internal prompt of "Would you like to install podman using your package manager?", the experience is a bit jarring:

Agree it is.

But I'm uncertain if we really need to ask them to do this. We already warn them the system will be reinstalled right? Under what scenario are they going to say "no" to installing podman?

So I'm thinking after that after the "system will be reinstalled" prompt we could just run this.

Warnings should always appear, so we should set the max level to WARN.

Signed-off-by: Omer Tuchfeld <[email protected]>
`run` hides stderr until the command fails, which is not what we want
for all current users of `run_with_cmd_context` - it's currently used
by long running processes where we want the users to see all the output
live.

Signed-off-by: Omer Tuchfeld <[email protected]>
Fixes bootc-dev#1104

Make the podman dependency of system-reinstall-bootc optional

* Change the spec file to recommend podman instead of requiring it (this
  will make it more palatable to have this package included in distros
  by default)

* Now that podman is only recommended, the system-reinstall-bootc binary
  must check whether podman is installed and try to install it. This is
  done by launching the install-podman script that is included with the
  system-reinstall-bootc RPM. The exact location where
  system-reinstall-bootc will look for this script is defined in the
  build environment variable `SYSTEM_REINSTALL_BOOTC_INSTALL_PODMAN_PATH`

Signed-off-by: Omer Tuchfeld <[email protected]>
@omertuc

omertuc commented Feb 12, 2025

Copy link
Copy Markdown
Contributor Author

If we skip an internal prompt of "Would you like to install podman using your package manager?", the experience is a bit jarring:

Agree it is.

But I'm uncertain if we really need to ask them to do this. We already warn them the system will be reinstalled right? Under what scenario are they going to say "no" to installing podman?

So I'm thinking after that after the "system will be reinstalled" prompt we could just run this.

Following your comment here is the latest experience:

exp.mp4

@omertuc
omertuc enabled auto-merge February 12, 2025 13:06
@omertuc
omertuc requested a review from cgwalters February 12, 2025 13:06

@cgwalters cgwalters left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The demos and flowcharts are really helpful for review BTW, nice work!

@cgwalters

Copy link
Copy Markdown
Member

CI failure is unrelated, see #1109
Forcing merge over that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/system-reinstall-bootc Issues related to system-reinstall-botoc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reinstall: Support installing podman

3 participants