OpenMediaVault-Plugin-Developers / installScript

script that installs omv-extras and openmediavault if not installed already.
1.07k stars 206 forks source link

Install Script is enabling systemd-networkd, even with "-n" switch, causing issues with DHCP (here) #137

Closed henroFall closed 4 months ago

henroFall commented 4 months ago

Before installing, by default, my Raspberry Pi is using NetworkManager.

sudo systemctl status systemd-networkd.service
○ systemd-networkd.service - Network Configuration
     Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; preset: enabled)
     Active: inactive (dead)
TriggeredBy: ○ systemd-networkd.socket
       Docs: man:systemd-networkd.service(8)
             man:org.freedesktop.network1(5)

After installing, networkd is enabled.

sudo systemctl status systemd-networkd.service
● systemd-networkd.service - Network Configuration
     Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-04-30 15:10:33 CDT; 3min 8s ago
TriggeredBy: ● systemd-networkd.socket
       Docs: man:systemd-networkd.service(8)
             man:org.freedesktop.network1(5)
   Main PID: 20348 (systemd-network)
     Status: "Processing requests..."
      Tasks: 1 (limit: 9126)
        CPU: 34ms
     CGroup: /system.slice/systemd-networkd.service
             └─20348 /lib/systemd/systemd-networkd

This has caused issues with getting DHCP addresses, timeouts with the wait services, etc. This occurs even when running install with "-n" to bypass network config.

If install is turning on systemd, shouldn't it turn off NetworkManager? Or, should it not bypass all of it with -n ?

ryecoaaron commented 4 months ago

To start, you should follow the install guide - https://wiki.omv-extras.org/doku.php?id=omv7:raspberry_pi_install. the install script is meant for a new install with networking configured following the guide.

The install script doesn’t do anything with networking if you specify the -n flag. OMV uses netplan with systemd-networkd and it is OMV changing your networking.