Closed flintstone1409 closed 3 years ago
The script doesn’t have an issue with the hostname either. OMV itself does. I guess I could add a check but if you know it causes problems with OMV, don’t do it because adding a check still won’t fix the real issue. And netplan failing, should not cause the pi to not boot. I guess I could change the script to not reboot on netplan failure.
but if you know it causes problems with OMV, don’t do it
I know (now) that this causes issues, but other users don't ;)
I guess I could change the script to not reboot on netplan failure.
The best way to prevent the issues would probably be to do a check before running any of the netplan stuff, and just outputting an error telling the user to change the hostname (and then exiting the script). By just not rebooting the user might run into issues when rebooting after some time, not even knowing whats wrong.
Thousands of users have run the script and I’ve never heard of this issue. In fact, the only hostname issue I have seen with OMV since the beginning 12+ years ago is when someone sets the hostname longer than 15 characters and samba doesn’t work.
Obviously if the script skipped the reboot, there would be output. OMV is already telling you the hostname is bad. I will add something to the script but it will not check for everything that could possibly be wrong. Why not file an issue with OMV to allow your really long hostname?
raspi-config must be putting the fqdn in /etc/hostname. With the current script changings, if hostname -s reports a name with a dot in it, then you doing something wrong. If there is no dot in the output, then the script should do the right thing. It will add the domain name to the omv dns database config if hostname -d reports a domain name. https://github.com/OpenMediaVault-Plugin-Developers/installScript/commit/2c5d89fe69891658f885528a9942b3f426d87ac4
The script won't reboot if salt fails to apply the new network settings. But that doesn't mean the network connection will be in a working state. So, I don't know how useful this change is. https://github.com/OpenMediaVault-Plugin-Developers/installScript/commit/4aceceb5d4d040556d13051cd5cffef9f90c3f66
I will mention that is the guide was followed and then you changed the hostname from the web interface, you wouldn't have had these issues. https://forum.openmediavault.org/index.php?thread/28789-installing-omv5-on-raspberry-pi-s-armbian-sbc-s-i386-32-bit-platforms/
For my local devices I use hostnames like
device.intern.my.domain
(they point to local IPs). I normally just set this whole name as hostname usingraspi-config
, which wasn't a problem until now. But when I use this install script, it errors but still tries to reboot, but the Pi doesn't boot anymore (doesn't even give some output via HDMI).Thats the error-part of the console output (I replaced the hostname with
<my hostname>
):I know I should not use such hostnames, but as it isn't a problem with other software the script should at least test for such a hostname before it destroys something which results in that the system doesn't boot anymore.