mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
daemon: Register secret driver before storage driver
The order in which drivers are registered is important because their stateInitialize and stateAutoStart callback are called in that order. Well, stateAutoStart is going away and therefore if there is some dependency between two drivers (e.g. when initializing storage driver expects secret driver to be available already), the registration of such drivers must happen in correct order. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
9eaa2a61c5
commit
c6266ddb02
@ -312,6 +312,10 @@ static int daemonInitialize(void)
|
||||
if (virDriverLoadModule("interface", "interfaceRegister", false) < 0)
|
||||
return -1;
|
||||
#endif
|
||||
#ifdef WITH_SECRETS
|
||||
if (virDriverLoadModule("secret", "secretRegister", false) < 0)
|
||||
return -1;
|
||||
#endif
|
||||
#ifdef WITH_STORAGE
|
||||
if (virDriverLoadModule("storage", "storageRegister", false) < 0)
|
||||
return -1;
|
||||
@ -320,10 +324,6 @@ static int daemonInitialize(void)
|
||||
if (virDriverLoadModule("nodedev", "nodedevRegister", false) < 0)
|
||||
return -1;
|
||||
#endif
|
||||
#ifdef WITH_SECRETS
|
||||
if (virDriverLoadModule("secret", "secretRegister", false) < 0)
|
||||
return -1;
|
||||
#endif
|
||||
#ifdef WITH_NWFILTER
|
||||
if (virDriverLoadModule("nwfilter", "nwfilterRegister", false) < 0)
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user