summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-03-31 11:55:38 -0400
committerJeremy Katz <katzj@redhat.com>2008-03-31 11:55:38 -0400
commit282bc63fd0edf4a7715617363f1996c3aa0d7678 (patch)
tree78132acadd2ec3a01f4f100c580a8ec368e0493f /packages.py
parent54fe225eaa1cb997eebcd57df0726c8c63ff5741 (diff)
downloadanaconda-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.py8
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)