OpenMediaVault-Plugin-Developers / installScript

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

Raspberry Pi 4 Bug: Fail to Connect to Wifi After Installed this script #7

Closed xufangda closed 4 years ago

xufangda commented 4 years ago

Raspbian Version: Raspbian Buster Lite Ver: Feburay-2020

I have retried to install OMV 5 three times and followed the steps exactly the same as shown in official install guide.

Bug

Every time after I successfully install this script, if I reboot my Raspberry Pi, it will lost WiFi connection forever, wifi cannot even be recovered even by using raspi-config tool.

I checked the startup process. The RPi 4 will success after HOSTNAME service and fail right after that, which is the network service.

Reason: This is because OMV flushed the /etc/networks/interfaces file, (OMV Developer, Please Have a look, don't flush it for RPi 4!!)

Solution:

copy the following code in the /etc/networks/interfaces file, then reboot.

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
subzero79 commented 4 years ago

The guide doesn't mention wifi. BTW please be clear, the guide is for omv5, but you're trying to install omv3?

ryecoaaron commented 4 years ago

The interfaces file is not used because OMV5 uses systemd-networkd. And you should not be using RPi utilities if you intend on using OMV since they do conflicting things.