-
Notifications
You must be signed in to change notification settings - Fork 495
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
Superfluous use of partprobe
#2211
Comments
Hmm I remember there was a reason we put the partprobe in place after partitioning, I can't fully remember now but I think there was an issue without it not loading the lsblk info correctly |
Regardless of whatever the intent was in the past, no evidence has been provided to justify any of the uses of partprobe outlined in the issue. |
The patch for this issue reintroduced #1759. See #1759 (comment) |
I doubt that but I could be wrong, logs would help. This type of issue appears to occur when partitions get created with invalid disk geometry (see #2210). I discovered another issue that will cause problems with partitioning and will raise an issue in a moment. |
I readded a single call to
Getting logs for you would be rather inconvenient.
My geometry seems valid enough since the system installed with If I submit my patch, will you nack it? Just trying to gauge up front how much effort it's going to take for me to fix this. |
Pertinent
partprobe
manual information: [1]From pyparted,
Disk.commit()
also "informs the operating system [kernel] of the changes" to a partition table [2] therefore callingpartprobe
afterDeviceHandler._perform_partitioning()
is unnecessary.archinstall/archinstall/lib/disk/device_handler.py
Lines 327 to 328 in f610632
archinstall/archinstall/lib/disk/device_handler.py
Lines 366 to 367 in f610632
archinstall/archinstall/lib/disk/device_handler.py
Lines 523 to 529 in f610632
A
partprobe
that is performed after formatting the partitions is unnecessary because formatting the partitions does not change the partition table.archinstall/archinstall/lib/disk/device_handler.py
Lines 295 to 305 in f610632
archinstall/archinstall/lib/disk/device_handler.py
Lines 377 to 389 in f610632
Encrypting a partition does not change the partition table.
archinstall/archinstall/lib/luks.py
Line 165 in f610632
[1] https://man.archlinux.org/man/partprobe.8
[2] https://github.com/dcantrell/pyparted/blob/d5870bb7a5d512c17c92a4e4fe7e9a8e7c8c3528/src/parted/disk.py#L202-L205
The text was updated successfully, but these errors were encountered: