core: add Manager::honor_device_enumeration flag

When system manager is started first time or after switching root,
then the udev's device tag data do not exist yet.
So, let's not honor the enumeration results.

Fixes #11997.
This commit is contained in:
Yu Watanabe
2019-03-15 19:47:43 +09:00
parent 49052946c9
commit c6e892bc0e
3 changed files with 26 additions and 1 deletions
+2
View File
@@ -395,6 +395,8 @@ struct Manager {
* multiple times on the same unit. */
unsigned sigchldgen;
unsigned notifygen;
bool honor_device_enumeration;
};
#define MANAGER_IS_SYSTEM(m) ((m)->unit_file_scope == UNIT_FILE_SYSTEM)