Bug 21764 - Boot stuck waiting for network
Summary: Boot stuck waiting for network
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-24 00:14 CEST by Pascal Terjan
Modified: 2020-08-05 16:18 CEST (History)
1 user (show)

See Also:
Source RPM: initscripts
CVE:
Status comment:


Attachments

Description Pascal Terjan 2017-09-24 00:14:45 CEST
network-up service never finishes, reading the code it should wait at most 22s but each time I tried I rebooted after 5 to 10 minutes.

Anyway the only interface has MII_NOT_SUPPORTED=yes so it should actually not wait for anything as should_wait_network will skip it.

  start)
    gprintf "Waiting for network to be up"
    exit 0

    for i in $interfaces; do
        LINK_DETECTION_DELAY=$DEFAULT_LINK_DETECTION_DELAY
        eval $(LANG=C grep -F "LINK_DETECTION_DELAY=" "ifcfg-$i")
        if [ "$LINK_DETECTION_DELAY" -gt $MAX_LINK_DETECTION_DELAY ]; then
            MAX_LINK_DETECTION_DELAY=$LINK_DETECTION_DELAY
        fi
    done
    NETWORKDELAY=$(( NETWORKDELAY + MAX_LINK_DETECTION_DELAY ))

    while should_wait_network && [ $ELAPSED_TIME -lt $NETWORKDELAY ]; do
        sleep 1
        let ELAPSED_TIME=$ELAPSED_TIME+1
    done
    [ $ELAPSED_TIME -ge $NETWORKDELAY ] && failure || success
    echo

Content of /etc/sysconfig/network-scripts/ifcfg-eth0 (created by drakconnect):

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=yes
USERCTL=no
DNS1=8.8.8.8
RESOLV_MODS=yes
IPV6INIT=yes
IPV6TO4INIT=no
ACCOUNTING=no
NM_CONTROLLED=no
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
PEERDNS=no
PEERYP=no
PEERNTPD=no
Rémi Verschelde 2017-09-24 10:41:33 CEST

Assignee: bugsquad => mageiatools

Comment 1 Aurelien Oudelet 2020-08-05 16:18:15 CEST
This message is a reminder that Mageia 6 is end of life.

Mageia stopped maintaining and issuing updates for Mageia 6. At that time this bug will be closed as OLD (EOL).

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version prior to Mageia 6's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we cannot 
be able to fix it before Mageia 6 was end of life.
If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

--
Mageia Bugsquad

Resolution: (none) => OLD
CC: (none) => ouaurelien
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.