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

Manual override for USE_DHCLIENT=y #447

Closed
mavit opened this issue Aug 6, 2014 · 4 comments
Closed

Manual override for USE_DHCLIENT=y #447

mavit opened this issue Aug 6, 2014 · 4 comments
Assignees

Comments

@mavit
Copy link
Contributor

mavit commented Aug 6, 2014

My networks are statically configured, but I also happen, sometimes, to have dhclient running. Script 21_include_dhclient.sh notices the dhclient and sets USE_DHCLIENT=y. Then, when booting from an ISO, 60-network-devices.sh and 62-routing.sh do nothing.

Should there be some way to tell rear to ignore the presence of dhclient and go ahead and use the static network config?

Background: various IBM tools sneakily start dhclient to set up a network interface on usb0 between the server and the baseboard management controller, for configuring the BIOS, etc.. This interface isn't required when recovering.

@gdha gdha added the support label Aug 7, 2014
@gdha gdha self-assigned this Aug 7, 2014
@gdha
Copy link
Member

gdha commented Aug 7, 2014

you could interrupt the boot process and add parameters to the rear prompt:
rear noip or rear dhcp or rear ip=xx nm=xx gw=xx netdev=yy

When you add noip you can run 60-network-devices.sh and 62-routing.sh by hand.

@mavit
Copy link
Contributor Author

mavit commented Aug 8, 2014

I can already run 60-network-devices.sh and 62-routing.sh by hand once 58-start-dhclient.sh fails, so that doesn't really help. I was hoping for something that could be arranged at configuration-time rather than restore-time.

Would you accept a patch to add a new configuration option, say USE_STATIC_NETWORKING, that would cause 60-network-devices.sh and 62-routing.sh to run regardless of the setting of USE_DHCLIENT?

@gdha
Copy link
Member

gdha commented Aug 8, 2014

Sure we accept patches. Make sure it is well tested and afterwards you can prepare a pull request. Thanks!

@mavit
Copy link
Contributor Author

mavit commented Oct 21, 2014

Please see pull request #488.

@mavit mavit closed this as completed Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants