mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-06 17:18:29 +03:00
vgchange monitor: don't use udev info
vgchange --monitor y is run during startup when udev is being initialized and is not yet ready to be used.
This commit is contained in:
parent
c7a5b5cca0
commit
72f0b637d2
@ -992,6 +992,17 @@ int vgchange(struct cmd_context *cmd, int argc, char **argv)
|
||||
return ECMD_PROCESSED;
|
||||
}
|
||||
|
||||
/*
|
||||
* Do not use udev for device listing or device info because
|
||||
* vgchange --monitor y is called during boot when udev is being
|
||||
* initialized and is not yet ready to be used.
|
||||
*/
|
||||
if (arg_is_set(cmd, monitor_ARG) &&
|
||||
arg_int_value(cmd, monitor_ARG, DEFAULT_DMEVENTD_MONITOR)) {
|
||||
init_obtain_device_list_from_udev(0);
|
||||
init_external_device_info_source(DEV_EXT_NONE);
|
||||
}
|
||||
|
||||
if (update)
|
||||
flags |= READ_FOR_UPDATE;
|
||||
else if (arg_is_set(cmd, activate_ARG))
|
||||
|
Loading…
Reference in New Issue
Block a user