wendelmineiro
(usa Debian)
Enviado em 21/07/2012 - 18:41h
Edson, boa noite.
Por a caso a funções de init que se referiu são as que fica dentro de /usr/share/initramfs-tools/scripts/functions ? Pois encontrei a função em que alguns momento a diskless fica parada na hora dela subir:
configure_networking()
{
# networking already configured thus bail out
[ -n "${DEVICE}" ] && [ -e /tmp/net-"${DEVICE}".conf ] && return 0
if [ "${HWADDR}" ]; then
# select interface by MAC address
HWADDR="$(echo "${HWADDR}" | tr A-Z- a-z:)"
local iface
for iface in /sys/class/net/*; do
[ -f "$iface/address" ] || continue
if [ "$(cat "$iface/address")" = "${HWADDR}" ]; then
DEVICE="${iface#/sys/class/net/}"
fi
done
fi
# support ip options see linux sources
# Documentation/filesystems/nfsroot.txt
case ${IPOPTS} in
none|off)
# Do nothing
;;
""|on|any)
# Bring up device
ipconfig -t 60 ${DEVICE}
;;
dhcp|bootp|rarp|both)
ipconfig -t 60 -c ${IPOPTS} -d ${DEVICE}
;;
*)
ipconfig -t 60 -d $IPOPTS
# grab device entry from ip option
NEW_DEVICE=${IPOPTS#*:*:*:*:*:*}
if [ "${NEW_DEVICE}" != "${IPOPTS}" ]; then
NEW_DEVICE=${NEW_DEVICE%:*}
else
# wrong parse, possibly only a partial string
NEW_DEVICE=
fi
if [ -n "${NEW_DEVICE}" ]; then
DEVICE="${NEW_DEVICE}"
fi
;;
esac
# source ipconfig output
if [ -n "${DEVICE}" ]; then
# source specific bootdevice
. /tmp/net-${DEVICE}.conf
else
# source any interface as not exaclty specified
. /tmp/net-*.conf
fi
}
Acredito que aquele erro de "Can't open /tmp/net-${DEVICE}.conf " venha do final desta função.
No aguardo, desde já agradeço.