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

install: A few minor patches #549

Merged
merged 3 commits into from
May 21, 2024
Merged

Conversation

cgwalters
Copy link
Collaborator

install: Add a spinner for container deployment

This can take substantial time.

Signed-off-by: Colin Walters walters@verbum.org


install: Be verbose for EFI creation and bootloader install

We previously changed the rootfs mkfs invocation to be
verbose; for consistency let's do the same for the EFI partition
as well as the bootloader run just so people can see
what's going on more.

Signed-off-by: Colin Walters walters@verbum.org


bootloader: Drop --src-root /

It's the default.

Signed-off-by: Colin Walters walters@verbum.org


This can take substantial time.

Signed-off-by: Colin Walters <walters@verbum.org>
We previously changed the rootfs `mkfs` invocation to be
verbose; for consistency let's do the same for the EFI partition
as well as the bootloader run just so people can see
what's going on more.

Signed-off-by: Colin Walters <walters@verbum.org>
It's the default.

Signed-off-by: Colin Walters <walters@verbum.org>
@github-actions github-actions bot added the area/install Issues related to `bootc install` label May 18, 2024
@cgwalters
Copy link
Collaborator Author

I think we can ignore the failing tests here, the cargo fmt one is fixed in another PR, and I think the other rhel integration test fixes are in flight in another PR too.

@jeckersb jeckersb self-assigned this May 20, 2024
Copy link
Contributor

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

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

Looks good!

"--device",
device.as_str(),
rootfs.as_str(),
]);
Task::new_and_run("Running bootupctl to install bootloader", "bootupctl", args)
Task::new("Running bootupctl to install bootloader", "bootupctl")
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 I know @bcrochet ran into this before when I was shoulder surfing with him.

let imgstate =
ostree_container::deploy::deploy(&sysroot, stateroot, &src_imageref, Some(options)).await?;
println!("Deployment complete");
let imgstate = crate::utils::async_task_with_spinner(
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 I sanity checked this on my system, it was too fast to actually see the spinner but I verified it omits the Deployment complete output and instead just puts out done as expected. I'm assuming if the deployment was slower I would see the actual spinner 😄

@jeckersb jeckersb merged commit 559aca7 into containers:main May 21, 2024
15 of 18 checks passed
@cgwalters
Copy link
Collaborator Author

cgwalters commented May 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/install Issues related to `bootc install`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants