Skip to content

May 16, 2012

10

Disable “Waiting for network configuration” messages on Ubuntu boot

I was just creating a custom live CD for Ubuntu 12.04 and was having a problem with the boot process hanging for several minutes while waiting for the network to be configured. I was trying to see if I could fix it but I have no idea why it is happening for now. I found a bug logged on LaunchPad here https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/811441/comments/24 that describes a workaround for oneric (11.10) but this fix/workaround is there by default in precise so obviously it didn’t fix my problem.

I didn’t really need networking setup at all and just wanted to skip waiting for the network to be configured. In order to do this you just need to edit the file /etc/init/failsafe.conf. In that file is where it sleeps for several minutes waiting for the network to come up. All I did was:

sudo vim /etc/init/failsafe.conf

I changed the first sleep command to

sleep 5

and then commented out the following lines:

$PLYMOUTH message --text="Waiting for network configuration..." || :
sleep 40
 
$PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || :
sleep 59

Just place a ‘#’ character at the beginning of each of those lines. Now it will just wait 5 seconds and then continue on.

To my surprise, the network was actually working just fine even though the script thinks it is not.

Just a note, do NOT remove the failsafe.conf file, otherwise it will hang the boot process indefinitely waiting for the network to be “configured.”

Read more from Uncategorized
10 Comments Post a comment
  1. Thomas
    May 18 2012

    thx thx thx!! :)

  2. May 24 2012

    This does work to make it faster, but have you had any luck actually finding the root cause of the problem?

  3. Daniel
    May 28 2012

    Thanks for this information. It really works
    But actually why does boot waits?

    For me, this wait situation only happens when I change interface configuration file. (it’s network configuration)

    So it might be related, thought my network still works as I want.

    I don’t understand the need for this boot delay and for this messages

  4. Brandon
    May 28 2012

    yeah I don’t know…I wish I could find the root cause but this is as close as I could get

  5. nicoxxl
    Jun 18 2012
  6. Brandon
    Jun 18 2012

    I only had the local interface in /etc/network/interfaces as described in the post in your link and it still gave me the error and made me wait

  7. Alvaro
    Oct 24 2012

    check the file /etc/network/interfaces, the form correct is

    auto lo
    iface lo inet loopback

  8. Jan 24 2013

    @nicoxxl, @Alvaro, the suggestion to delete all but local loopback info from interfaces does not work in many situations. For instance, I get this extra wait when starting a KVM guest.. The network settings are properly configured with static IP (dhcp can’t be used as the guest is a server). But apparently network access is not available to the KVM guest at that stage of boot, hence the error. Commenting out the delays in failsafe.conf worked for me perfectly (the network works as expected upon completion of the boot sequence).

  9. nadrimajstor
    Mar 6 2013

    Here you can find some rationale on introducing failsafe.conf
    https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/839595
    And a set of nice looking workarounds
    https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/839595/comments/39

  10. glidderie
    May 18 2013

    A by-no-means exhaustive list of resources follows. Please send us your favorites.

    Celiac Disease Foundation, based in Studio City. Information, seminars and product shows, children’s summer camp.

    Mayo Clinic. Information on health and gluten-free products.

    The William K. Warren Medical Research Center for Celiac Disease, UC San Diego. Information, lectures online and referrals.

    The U.S. Food and Drug Administration. The federal agency has proposed a definition of gluten-free that should assure consumers about what’s in products. The limit is likely to be at 20 parts per million of gluten. Several sources said the final rule could be issued any time. Currently there are private certifying agencies whose seals appear on many products to designate them as gluten-free.

    Books

    There are many books available, and many websites and blogs that offer recipes. A few of them:

    “Real Life With Celiac Disease,” written by more than 50 experts who share patients’ stories and discuss treatments and lifestyle changes for people with gluten-related disorders.

    “Gluten-Free Girl Every Day,” by Shauna James Ahern. She also has a popular blog,
    “Gluten-Free Recipes for the Conscious Cook,” by Leslie Cerier

    “Weeknight Gluten Free” by Kristine Kidd

    Other stuff

    Toast-It-Bags. Many of the gluten-free breads taste better toasted, and in some homes that requires two toasters on the counter. But people can also slip a slice of gluten-free bread into the bag and put it in the toaster to prevent cross-contamination from other products in the toaster. About $7 from online sources, including .

    The Addiction Bistro, 408 N. La Cienega Blvd., Los Angeles. With an owner and chef who eat gluten-free, this is a popular restaurant for gluten-free dieters. Burgers, sausages, chili, pasta and ice cream all made in-house. Hot sauces, ketchups and mustards are made by chef Johnny Kovin.
    12312
    12312

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments