diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-03-31 11:55:38 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-03-31 11:55:38 -0400 |
commit | 282bc63fd0edf4a7715617363f1996c3aa0d7678 (patch) | |
tree | 78132acadd2ec3a01f4f100c580a8ec368e0493f /packages.py | |
parent | 54fe225eaa1cb997eebcd57df0726c8c63ff5741 (diff) | |
download | anaconda-282bc63fd0edf4a7715617363f1996c3aa0d7678.tar.gz anaconda-282bc63fd0edf4a7715617363f1996c3aa0d7678.tar.xz anaconda-282bc63fd0edf4a7715617363f1996c3aa0d7678.zip |
Lame attempt to try to avoid race condition with udev creating device nodes
We seem to not have device nodes yet when we go to write things to disk
_sometimes_. But when people switch to tty2, they're there. Assume that the
problem is that we're racing with udev and thus add a sleep + waiting for
udev to settle
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages.py b/packages.py index b52580886..b7238cb5b 100644 --- a/packages.py +++ b/packages.py @@ -174,6 +174,14 @@ def turnOnFilesystems(anaconda): if not anaconda.id.fsset.isActive(): anaconda.id.diskset.savePartitions () + # this is somewhat lame, but we seem to be racing with + # device node creation sometimes. so wait for device nodes + # to settle + time.sleep(1) + rc = iutil.execWithRedirect("udevsettle", [], + stdout = "/dev/tty5", + stderr = "/dev/tty5", + searchPath = 1) anaconda.id.partitions.doMetaResizes(anaconda.id.diskset) try: anaconda.id.fsset.growFilesystems(anaconda.id.diskset, anaconda.rootPath) |