Red Hat Bugzilla – Bug 439497
autofs hang on startup
Last modified: 2009-01-20 16:45:40 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:18.104.22.168) Gecko/20080325 Fedora/22.214.171.124-1.fc8 Firefox/126.96.36.199
Description of problem:
When I start /etc/init.d/autofs it hangs forever.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Boot a headless system with no keyboard or mouse and with / as tmpfs
2. Start /etc/init.d/autofs start
Autofs should have started and bash should have returned to the prompt.
I'm not sure if the fact that the system is headless or that / is tmpfs is relevant.
However, as reported in http://email@example.com/msg06460.html, replacing /dev/random with a symlink to /dev/urandom fixes the problem.
I haven't checked into this yet, thanks for the reminder.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
I am running into this as well. I believe the hangs are caused by the
calls to seed_random() which in turn tries to read /dev/random and
that hangs on entropy starved systems. Changing Patch66:
autofs-5.0.1-rc3-random-selection.patch to use /dev/urandom instead of
/dev/random is the easy fix. /dev/random is an overkill for this
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.