#17 Fix error when upgrading from v255 and networkd can't be restarted
Merged a month ago by dcavalca. Opened a month ago by teknoraver.
rpms/ teknoraver/systemd c10s-sig-hyperscale  into  c10s-sig-hyperscale

@@ -0,0 +1,25 @@ 

+ From 0841bbf69ed2b7d623c09a8e35ddf563a2acfb18 Mon Sep 17 00:00:00 2001

+ From: Matteo Croce <teknoraver@meta.com>

+ Date: Fri, 18 Oct 2024 18:44:13 +0200

+ Subject: [PATCH] keep on using DBus as fallback if varlink is not available

+ 

+ ---

+  src/network/networkctl.c | 2 +-

+  1 file changed, 1 insertion(+), 1 deletion(-)

+ 

+ diff --git a/src/network/networkctl.c b/src/network/networkctl.c

+ index a447c39..f3d7f24 100644

+ --- a/src/network/networkctl.c

+ +++ b/src/network/networkctl.c

+ @@ -173,7 +173,7 @@ int acquire_bus(sd_bus **ret) {

+          if (networkd_is_running()) {

+                  r = varlink_connect_networkd(/* ret_varlink = */ NULL);

+                  if (r < 0)

+ -                        return r;

+ +                        log_warning("Varlink connection failed, fallback to D-Bus.");

+          } else

+                  log_warning("systemd-networkd is not running, output might be incomplete.");

+  

+ -- 

+ 2.47.0

+ 

file modified
+4 -1
@@ -44,7 +44,7 @@ 

  # Allow users to specify the version and release when building the rpm by 

  # setting the %%version_override and %%release_override macros.

  Version:        %{?version_override}%{!?version_override:256.7}

- Release:        %{?release_override}%{!?release_override:1.1}%{?dist}

+ Release:        %{?release_override}%{!?release_override:1.2}%{?dist}

  

  %global stable %(c="%version"; [ "$c" = "${c#*.*}" ]; echo $?)

  
@@ -142,6 +142,9 @@ 

  # core: Add support for PrivateUsers=identity

  Patch0902:      https://github.com/systemd/systemd/pull/34400.patch

  

+ # Fix error when upgrading from v255

+ Patch0903: 0001-keep-on-using-DBus-as-fallback-if-varlink-is-not-ava.patch

+ 

  %endif

  

  %ifarch %{ix86} x86_64 aarch64 riscv64

# networkctl
Failed to connect to network service /run/systemd/netif/io.systemd.Network: No such file or directory
Varlink connection failed, fallback to D-Bus.
IDX LINK TYPE     OPERATIONAL SETUP
  1 lo   loopback carrier     unmanaged
  2 eth0 ether    routable    configured

2 links listed.
# systemctl --version
systemd 256 (256.7-1.2.hs+fb.el9)

Pull-Request has been merged by dcavalca

a month ago