Am 27.02.2011 22:24, schrieb Bernhard Schmidt: > On 18.02.2011 08:24, Tollef Fog Heen wrote: >> | However, I do see weird things, namely duplicate mounts. >> >> Looks like you don't have /etc/mtab pointing to /proc/mounts? > > Correct. Fixed that, does not fix my non-starting network though. > Upgrading to 17-1 does not help either.
The missing /etc/mtab symlink is a red herring. It has nothing to do with your
problem.
The problem is, that your network device is activated by a udev rule
(allow-hotplug). With systemd, udev runs *very* early, so your networrk
interface is most likely upped at a time where certain directories are not
writable yet, so the activation of the interface fails. We need to delay
activation to at least after local-fs.target, so we have a writable /var.
The current check in /lib/udev/net.agent is not sufficient for that:
if [ -e /bin/systemctl ]; then
wait_for_file /dev/log
fi
The existence of /dev/log does not guarantee that all dependencies for ifupdown
are ready, especially since systemd establishes the /dev/log socket as one of
it's first actions.
We've already been discussing how to solve that.
My sugggestion would be something like this:
in net.agent:
if [ -d /sys/fs/cgoup/systemd ] ; then
systemctl start ifup@$INTERFACE.service
else
exec ifup --allow=hotplug $INTERFACE
fi
and provide a instanced [email protected] file, which has the necessary
dependencies.
Cheers,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

