diff options
Diffstat (limited to 'ubi-utils/src/ubimkvol.c')
-rw-r--r-- | ubi-utils/src/ubimkvol.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ubi-utils/src/ubimkvol.c b/ubi-utils/src/ubimkvol.c index db57a93..ad58cc9 100644 --- a/ubi-utils/src/ubimkvol.c +++ b/ubi-utils/src/ubimkvol.c @@ -333,6 +333,14 @@ int main(int argc, char * const argv[]) goto out_libubi; } + /* + * This is hacky, but we want to wait until udev has created device + * nodes. There is probably better way do do this, though. + */ + if (system("udevsettle")) { + /* Well, this is to keep GCC silent */ + } + /* printf("Created volume %d, %lld bytes, type %s, name %s\n", vol_id, bytes, vol_type == UBI_DYNAMIC_VOLUME ? "dynamic" : "static", name); */ |