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

repartition: Use partx rather than busybox partprobe #411

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

wjt
Copy link
Member

@wjt wjt commented Jun 6, 2024

Since da7b937, partprobe in the
initramfs is busybox, not the tool from parted.

For unknown reasons, busybox partprobe fails to probe /dev/loop0 after
it has been repartitioned, failing with:

partprobe: /dev/loop0: Invalid argument

partx --update performs a similar function, except that it works
correctly at this stage of the boot process. Using partx also has the
advantage that running this tool manually from the booted system (where
partprobe is the real thing) will actually run the same code as in the
initramfs.

https://phabricator.endlessm.com/T35432

@wjt wjt requested review from starnight and dbnicholson June 6, 2024 17:12
Since da7b937, partprobe in the
initramfs is busybox, not the tool from parted.

For unknown reasons, busybox partprobe fails to probe /dev/loop0 after
it has been repartitioned, failing with:

    partprobe: /dev/loop0: Invalid argument

partx --update performs a similar function, except that it works
correctly at this stage of the boot process. Using partx also has the
advantage that running this tool manually from the booted system (where
partprobe is the real thing) will actually run the same code as in the
initramfs.

https://phabricator.endlessm.com/T35432
@wjt wjt force-pushed the T35432-partx-not-busybox-partprobe branch from d644efe to 788fcf6 Compare June 6, 2024 17:38
Copy link
Member

@dbnicholson dbnicholson left a comment

Choose a reason for hiding this comment

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

Shocking that a busybox implementation is not an actual replacement for the real thing...

The alternative is to make the busybox module not include partprobe, but that requires changing dracut. This is better. Until busybox ships a half assed partx...

@dbnicholson dbnicholson merged commit 11e4a2c into master Jun 6, 2024
2 checks passed
@dbnicholson dbnicholson deleted the T35432-partx-not-busybox-partprobe branch June 6, 2024 18:45
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