nspawn: fix --network-interface
Use SETLINK when modifying an existing link.
This commit is contained in:
parent
371ad55d46
commit
3125b3ef5d
2
TODO
2
TODO
|
@ -24,8 +24,6 @@ External:
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
* nspawn --network-interface= doesn't work...
|
|
||||||
|
|
||||||
* dbus: add new message hdr field for allowing interactive auth, write spec for it. update dbus spec to mandate that unknown flags *must* be ignored...
|
* dbus: add new message hdr field for allowing interactive auth, write spec for it. update dbus spec to mandate that unknown flags *must* be ignored...
|
||||||
|
|
||||||
* maybe introduce AssertXYZ= similar to ConditionXYZ= that causes a unit to fail (instead of skipping it) if some condition is not true...
|
* maybe introduce AssertXYZ= similar to ConditionXYZ= that causes a unit to fail (instead of skipping it) if some condition is not true...
|
||||||
|
|
|
@ -1886,7 +1886,7 @@ static int move_network_interfaces(pid_t pid) {
|
||||||
if (ifi < 0)
|
if (ifi < 0)
|
||||||
return ifi;
|
return ifi;
|
||||||
|
|
||||||
r = sd_rtnl_message_new_link(rtnl, &m, RTM_NEWLINK, ifi);
|
r = sd_rtnl_message_new_link(rtnl, &m, RTM_SETLINK, ifi);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
log_error("Failed to allocate netlink message: %s", strerror(-r));
|
log_error("Failed to allocate netlink message: %s", strerror(-r));
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in New Issue