Premessa: sono riuscito a raggiungere il mio scopo: eth0 e lo vengono caricate all'avvio ma non è andato tutto come ci potevamo aspettare.
Ho fatto
emerge --oneshot baselayout
env-update
e lo scritp /etc/init.d/net.lo è rimasto vuoto !!!!!!
Ho ripristinato il file di backup nominato nel precedente post e corretto un errore in /etc/conf.d/net
Fatto questo le interfacce vengono caricate ma ottengo degli errori al boot
Code: Select all
/sbin/depsca.sh
could not get dependency info for "net.eth0"
e altri che non riesco a riportare.
Le domande sono 2:
1-perchè emerge --oneshot baselayout non ha ripristinato gli script di avvio come avrebbe dovuto fare?
2-cosa sono i messaggi di errore che ricevo al boot? A cosa si riferiscono e che problemi posso avere?
Riporto ora la situazione prima che ripristinassi il backup:
------------
Riporto più informazioni possibili:
Code: Select all
localhost sirio81 # ls -l /etc/conf.d/net*
-rw-r--r-- 1 root root 315 20 mar 18:14 /etc/conf.d/net
-rw-r--r-- 1 root root 17940 20 mar 17:17 /etc/conf.d/net.example
-rw------- 1 root root 2775 19 mar 11:53 /etc/conf.d/net.ppp0
Code: Select all
localhost sirio81 # ls -l /etc/init.d/net*
lrwxrwxrwx 1 root root 6 20 mar 17:17 /etc/init.d/net.eth0 -> net.lo
-rwxr-xr-x 1 root root 24324 19 mar 21:43 /etc/init.d/net.eth0.bkp
-rwxr-xr-x 1 root root 1 20 mar 17:17 /etc/init.d/net.lo
-rwxr-xr-x 1 root root 3055 20 mar 17:17 /etc/init.d/netmount
-rwxr-xr-x 1 root root 4408 19 mar 11:53 /etc/init.d/net.ppp0
Code: Select all
localhost sirio81 # more /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=("192.168.1.27/24")
routes_eth0=("default via 192.168.1.1")
Code: Select all
localhost sirio81 # more /etc/init.d/net.lo
Non restituisce niente.
Anche net.eth0 non restituisce niente (è un link simblolico ad net.lo e sarebbe strano il contrario).
Code: Select all
localhost sirio81 # more /etc/init.d/netmount
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
local myneed="net"
local myuse=""
# Only have Portmap as a dependency if there is a nfs mount in fstab
# that should be mounted at boot time. Also filter out comments.
local nfsmounts=$(awk '!/^#/ && ($3=="nfs" || $3=="nfs4") && $4 !~ /noau
to/ { print $0 }' /etc/fstab)
if [[ -n ${nfsmounts} ]] ; then
myneed="${myneed} portmap"
myuse="${myuse} nfs nfsmount"
else
myuse="${myuse} portmap"
fi
need ${myneed}
use ${myuse}
}
----------