From 282bc63fd0edf4a7715617363f1996c3aa0d7678 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 31 Mar 2008 11:55:38 -0400 Subject: 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 --- packages.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'packages.py') 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) -- cgit