1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

dissect: rescan devices before creating partition list (#9930)

Fixes #9924 which is caused by 3c1f2cee0a.
This commit is contained in:
Yu Watanabe 2018-08-24 22:34:13 +09:00 committed by GitHub
parent 49679ff70f
commit 7ecc4799a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,6 +350,10 @@ int dissect_image(
e = sd_device_enumerator_unref(e);
}
r = device_enumerator_scan_devices(e);
if (r < 0)
return r;
FOREACH_DEVICE_AND_SUBSYSTEM(e, q) {
unsigned long long pflags;
blkid_partition pp;