You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Software (please complete the following information):
FOG version 1.5.10.1629
OS: Ubuntu Server 24.04 LTS
Additional context
The problem is located in the functions script (/fogproject/lib/common/functions.sh) at line 255. The command ip -4 addr show | grep -w inet | grep $interface | awk '{print $4}' returns "global" when run on ubuntu. When fed into the function "subtract1fromAddress" this will return an "Invalid IP Passed" error which is in turn pasted into the dhcpd.conf file and causes the dhcp service to fail due to misconfiguration.
My solution was to replace line 255 in /fogproject/lib/common/functions.sh with the following:
echo $(ip -4 addr show | grep -w inet | grep eno2 | awk '{print $2}' | sed 's/...$//')
I can't say if this works for other distro's or versions of Ubuntu but this fixed the issue with Ubuntu Server 24.04 LTS.
The text was updated successfully, but these errors were encountered:
Describe the bug
The bug is identical to this one: #593
During install the DHCP configuration script fails to correctly set the IP ranges.
To Reproduce
Steps to reproduce the behavior:
Software (please complete the following information):
Additional context
The problem is located in the functions script (/fogproject/lib/common/functions.sh) at line 255. The command
ip -4 addr show | grep -w inet | grep $interface | awk '{print $4}'
returns "global" when run on ubuntu. When fed into the function "subtract1fromAddress" this will return an "Invalid IP Passed" error which is in turn pasted into the dhcpd.conf file and causes the dhcp service to fail due to misconfiguration.My solution was to replace line 255 in /fogproject/lib/common/functions.sh with the following:
echo $(ip -4 addr show | grep -w inet | grep eno2 | awk '{print $2}' | sed 's/...$//')
I can't say if this works for other distro's or versions of Ubuntu but this fixed the issue with Ubuntu Server 24.04 LTS.
The text was updated successfully, but these errors were encountered: