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

Cfdisk wakes up all disks and blocks until they're up #1331

Closed
Atemu opened this issue Jun 3, 2021 · 1 comment
Closed

Cfdisk wakes up all disks and blocks until they're up #1331

Atemu opened this issue Jun 3, 2021 · 1 comment

Comments

@Atemu
Copy link

Atemu commented Jun 3, 2021

When selecting a partition (i.e. after having created one) cfdisk wakes my hard drives and completely blocks until they've up.

This is extremely annoying because A. I usually want my drives to stay asleep when I'm partitioning a completely unrelated one and B. don't want the partitioning program to block for multiple seconds thanks to that.

Repro:

  1. Have to HDDs, one asleep (drive B)
  2. cfdisk -z A
  3. Create a new partition
  4. cfdisk blocks until drive is up
  5. cfdisk shows partition metadata

A might need to have been formatted before.

@karelzak
Copy link
Collaborator

This is because cfdisk checks for a mounpoint (by libmount and it uses /dev/disk/by-partuuid). This is overkill for new partitions.

Fixed (I hope). Thanks for your report!

karelzak added a commit that referenced this issue Jul 20, 2021
Don't check fstab (and udev symplinks) for new UUIDs.

Fixes: #1331
Signed-off-by: Karel Zak <kzak@redhat.com>
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

No branches or pull requests

2 participants