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

Commits on Jun 6, 2024

  1. repartition: Use partx rather than busybox partprobe

    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 committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    788fcf6 View commit details
    Browse the repository at this point in the history