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: Fork blockdev --rereadpt instead of internal ioctl #704

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

cgwalters
Copy link
Collaborator

The ioctl to reread the partition table was the last thing pulling in nix. Honestly especially in the install path I have no problem forking external binaries, and since we're already depending on util-linux-core for other things like sfdisk and lsblk, it just makes sense to so here with the command whose entire role in life is to just issue that ioctl.

This drops out an older verison of nix (which is a fine crate, but again I think rustix is nicer). There's a different version pulled in via libsystemd, but we can get to that later.

The `ioctl` to reread the partition table was the last thing
pulling in `nix`. Honestly especially in the install path
I have no problem forking external binaries, and since we're
already depending on util-linux-core for other things like
`sfdisk` and `lsblk`, it just makes sense to so here with
the command whose entire role in life is to just issue
that `ioctl`.

This drops out an older verison of `nix` (which is a fine crate, but again
I think `rustix` is nicer). There's a different version
pulled in via libsystemd, but we can get to that later.

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters enabled auto-merge July 18, 2024 13:13
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.

👍

@cgwalters cgwalters merged commit af550f7 into containers:main Jul 18, 2024
25 of 28 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.

2 participants