git.iko.soy/typeable/nixpkgs
on master help sign in
fix vlan interface bring up on boot

when the parent interface of a vlan interface is not up (yet), ip link cannot bring the vlan interface up the vlan interface will be automatically brought up when the parent interface is up later fix NixOS/nixpkgs#28620

commit939c6be54e65a2ad2b954f400287e70b95d44e0c authorYoufu Zhang <1315097+zhangyoufu@users.noreply.github.com> dateThu 2 Aug 2018, 18:10 (8 years ago) parentcd794f4
1 file changed+1−1
nixos/modules/tasks/network-interfaces-scripted.nix+1−1
nixos/modules/tasks/network-interfaces-scripted.nix+1−1
@@ -473,7 +473,7 @@ let
473473 # Remove Dead Interfaces
474474 ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
475475 ip link add link "${v.interface}" name "${n}" type vlan id "${toString v.id}"
476− ip link set "${n}" up
476+ ip link set "${n}" up || true
477477 '';
478478 postStop = ''
479479 ip link delete "${n}" || true