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

cli: Make sysroot lock automatically check root + setup mountns #619

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

cgwalters
Copy link
Collaborator

Previous to this change, we were always pairing together two functions:

  • prepare_for_write()
  • get_locked_sysroot()

Make the latter automatically call the former (and make it private to the cli code).

This will avoid bugs like dcfc752 where we forgot to call the first one and didn't end up with an unshared mountns.

While we're here, drop an unnecessary async from these functions, and just in case make prepare_for_write() idempotent.

Previous to this change, we were always pairing together two
functions:

- `prepare_for_write()`
- `get_locked_sysroot()`

Make the latter automatically call the former (and make it private
to the cli code).

This will avoid bugs like containers@dcfc752
where we forgot to call the first one and didn't end up with
an unshared mountns.

While we're here, drop an unnecessary `async` from these functions,
and just in case make `prepare_for_write()` idempotent.

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

@cgwalters cgwalters merged commit 72bca1b into containers:main Jun 21, 2024
12 of 18 checks passed
@jeckersb
Copy link
Contributor

Can anyone spot what the actual error is in https://artifacts.osci.redhat.com/testing-farm/25531a16-1e9e-4781-b0e6-09970b9bd762/#artifacts-/plans/install-upgrade/to-disk ?

Unfortunately looks like it's been garbage collected by the time I got to it? testout.log is now just a 404 😢

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.

None yet

3 participants