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

sgdisk: Run partx after partition changes #1717

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Commits on Jun 28, 2024

  1. disks: Refuse to modify disks/partitions in use

    When a partition or the whole disk is in use, sgdisk should not execute
    the destructive operation.
    Add a check that errors out when a disk in use or a partition in use is
    to be destroyed.
    pothos committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    8916185 View commit details
    Browse the repository at this point in the history
  2. sgdisk: Run partx after partition changes

    The sgdisk tool does not update the kernel partition table with BLKPG in
    contrast to other similar tools but only uses BLKRRPART which fails as
    soon as one partition of the disk is mounted.
    Update the kernel partition table with partx when we know that a
    partition of the disk is in use.
    pothos committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    c2cc56c View commit details
    Browse the repository at this point in the history