From 36161cba7ce9227c83d9aa3c9d621ffcca829f56 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 30 Apr 2021 08:10:36 +0900 Subject: [PATCH] network: do not bring up CAN interface on configure --- src/network/networkd-link.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 8b8c3852203..ffaebbbf6d3 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -2739,6 +2739,10 @@ static int link_admin_state_down(Link *link) { return 0; if (link->network->activation_policy == ACTIVATION_POLICY_ALWAYS_UP) { + if (streq_ptr(link->kind, "can") && !link->can_configured) + /* CAN device needs to be down on configure. */ + return 0; + log_link_info(link, "ActivationPolicy is \"always-on\", forcing link up"); return link_up(link); }