Merge "[IBP]: fix 'udevadm trigger' hanging"

This commit is contained in:
Jenkins 2015-04-29 16:23:48 +00:00 committed by Gerrit Code Review
commit cb52a2e40e
1 changed files with 3 additions and 1 deletions

View File

@ -195,7 +195,9 @@ class Manager(object):
check_exit_code=[0])
#NOTE(agordeev): re-create all the links which were skipped by udev
# while blacklisted
utils.execute('udevadm', 'trigger', check_exit_code=[0])
# NOTE(agordeev): do subsystem match, otherwise it will stuck
utils.execute('udevadm', 'trigger', '--subsystem-match=block',
check_exit_code=[0])
utils.execute('udevadm', 'settle', '--quiet', check_exit_code=[0])
# If one creates partitions with the same boundaries as last time,