-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: Make sysroot lock automatically check root + setup mountns
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. Signed-off-by: Colin Walters <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters