Hi guys,
my PI is setup to retrieve IP from DHCP where it has a reservation
On the pi there was already some stuff running:
- Samba
- Wireguard ( via: curl
-L <a href="https://install.pivpn.io/">https://install.pivpn.io</a> | bash
)
No special network configuration besides my DHCP reservation, if I was asked (like from the wireguard script) if I want to setup a static IP I said no because I have the reservation.
And everything was fine and hunky dori.
Then i recently decided to try OMV just to avoid Shell configuration und make it a bit more casual to administer the Samba stuff.
So I installed this script on my Pi
wget
-O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install
| sudo bash
I saw this in the middle:
WARNING:
/etc/aliases exists, but does not have a root alias.
but I think what really fucked up every thing was this here at the end:
----------
ID: apply_netplan_config
Function: cmd.run
Name: netplan apply
Result: False
Comment: Command "netplan apply" run
Started: 11:25:20.072713
Duration: 298.999 ms
Changes:
----------
pid:
29692
retcode:
78
stderr:
/etc/netplan/20-openmediavault-wg0.yaml:5:20: Error in network definition: Invalid MAC address '', must be XX:XX:XX:XX:XX:XX
macaddress:
^
stdout:
Summary for raspberrypi
------------
Succeeded: 7 (changed=8)
Failed: 1
------------
Total states run: 8
Total run time: 547.848 ms
Network setup for DHCP. Rebooting...
pi@raspberrypi:~ $
Alles anzeigen
Then script automatically rebooted without giving my a chance to investigate or repair anything and now I doesn't get its IP-address any more.
I don't have any monitor connected yet so I cannot see what really going on and I might just restore the SDcard with my backup instead of bothering arround with a monitor and keyboard.
But I want to let you guys know that there is an bug with this script maybe with WireGuard or the dynamic IP-setting.