Commit 1f504d6b authored by Michael Biebl's avatar Michael Biebl
Browse files

Properly escape network interface names in net.agent

Use the new systemd-escape utility to properly escape the network
interface name when starting an ifup@.service instance for hotplugged
network interfaces. Make sure a recent enough systemd version is
installed by bumping the versioned Breaks accordingly.

Also make "systemctl start" non-blocking as we only want to enqueue the
job but do not actually need to wait for it to finish.

Closes: #747044
parent 9ef51f6c
......@@ -20,6 +20,10 @@ systemd (215-1) UNRELEASED; urgency=medium
* Install new systemd-path and systemd-escape binaries.
* Cherry-pick upstream commit which fixes the references to the systemctl
man page. (Closes: #760613)
* Use the new systemd-escape utility to properly escape the network
interface name when starting an ifup@.service instance for hotplugged
network interfaces. Make sure a recent enough systemd version is installed
by bumping the versioned Breaks accordingly. (Closes: #747044)
-- Michael Biebl <biebl@debian.org> Tue, 26 Aug 2014 12:09:10 +0200
......
......@@ -288,7 +288,7 @@ Depends: ${shlibs:Depends},
procps
Breaks: consolekit (<< 0.4.6-1),
kmod (<< 14),
systemd (<< 208),
systemd (<< 215-1),
plymouth (<< 0.9.0-7)
Description: /dev/ and hotplug management daemon
udev is a daemon which dynamically creates and removes device nodes from
......
......@@ -39,7 +39,7 @@ net_ifup() {
fi
if [ -d /run/systemd/system ]; then
exec systemctl start ifup@${INTERFACE}.service
exec systemctl --no-block start $(systemd-escape --template ifup@.service $INTERFACE)
fi
if ps -C ifup ho args | grep -q "$INTERFACE"; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment