Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCP config fails during install #667

Open
ashahn1 opened this issue Dec 20, 2024 · 0 comments
Open

DHCP config fails during install #667

ashahn1 opened this issue Dec 20, 2024 · 0 comments

Comments

@ashahn1
Copy link

ashahn1 commented Dec 20, 2024

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:

  1. Install FOG on Ubuntu Server 24.04 LTS as described in https://docs.fogproject.org/en/latest/installation/server/install-fog-server/#installer-prompts

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant