Pmanager: Add udev settle after trigger

Since udev is well known for its async nature, we need to be sure
that it finishes its queue processing after calling 'udevadm trigger'.
'udevadm settle' is the only way to achive that sync.

Otherwise, we could end up with unexpectable changes in devfs in the
middle of the rest of the script execution.

Change-Id: Ie994b5fbb070314621ba369e7a4f4850cf400173
Related-Bug: #1410471
This commit is contained in:
Alexander Gordeev 2015-04-03 21:20:41 +03:00
parent 82d3a80a89
commit 10ab0e3dd1
1 changed files with 1 additions and 0 deletions

View File

@ -746,6 +746,7 @@ class PreseedPManager(object):
"fi; done")
self.late("udevadm control --reload")
self.late("udevadm trigger")
self.late("udevadm settle --quiet")
def boot(self):
self.recipe("24 24 24 ext3 "