Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve fs-resize, fix delay and simplify #2993
fs-resize running at early boot time may need minutes to complete because the kernel RNG is not initialized.
When parted and sgdisk call uuid_generate(), util-linux libuuid implementation use a blocking getrandom() syscall. It waits until the kernel crng has collected enough entropy. Having a SSD, no network, no user input and no HW RNG this can take a long time. The behavior explains the delay seen in #2957.
This is fixed in util-linux 2.32:
Using parted's 3.2 'resizepart' command removes the partition recreation hack.