Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1430  / 12 Months ago, wed, may 31, 2023, 2:29:10

I have remastered a Ubuntu 13.04 Live-CD for software presentations. During boot, it tries to find a network connection for several minutes (but fails in the end). Maybe it does not detect my network card properly (MacBook Pro). For the live system I don't need an internet connection. Only access to localhost is important.



How do I prevent the system from configuring the network/internet connection while still preserving access to localhost?



If I can not turn this off, is it possible to reduce the timeout for this configuration process?



EDIT: I forgot to say that I used a minimal Ubuntu 13.04 with command line only. Hence, no GUI components are responsible for the delay.



EDIT 2: The /etc/network/interfaces of the Live-DVD before remastering is



# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

More From » networking

 Answers
6

I solved it by editing /etc/init/failsafe.conf, which contained the messages and the delays:



# failsafe

description "Failsafe Boot Delay"
author "Clint Byrum <[email protected]>"

start on filesystem and net-device-up IFACE=lo
stop on static-network-up or starting rc-sysinit

emits failsafe-boot

console output

script
# Determine if plymouth is available
if [ -x /bin/plymouth ] && /bin/plymouth --ping ; then
PLYMOUTH=/bin/plymouth
else
PLYMOUTH=":"
fi

# The point here is to wait for 2 minutes before forcibly booting
# the system. Anything that is in an "or" condition with 'started
# failsafe' in rc-sysinit deserves consideration for mentioning in
# these messages. currently only static-network-up counts for that.
sleep 20

# Plymouth errors should not stop the script because we *must* reach
# the end of this script to avoid letting the system spin forever
# waiting on it to start.
$PLYMOUTH message --text="Waiting for network configuration..." || :
sleep 40

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

$PLYMOUTH message --text="Booting system without full network configuration..." || :

# give user 1 second to see this message since plymouth will go
# away as soon as failsafe starts.
sleep 1
exec initctl emit --no-wait failsafe-boot
end script

post-start exec logger -t 'failsafe' -p daemon.warning "Failsafe of 120 seconds reached."


Just replace the xx in sleep xx with a small value. It might also be possible to remove the sleep commands. This does not necessarily disable the network interfaces, but reduces the time for the system trying to find a connection.


[#29826] Thursday, June 1, 2023, 12 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
warrdel

Total Points: 356
Total Questions: 103
Total Answers: 118

Location: Bangladesh
Member since Sat, Jan 23, 2021
3 Years ago
;