Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Setting a persistent hostname and domainname should be in the base OS. #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aglarond
Copy link

These are slightly adapted from the original, in order to read 'hostname' and 'defaultdomain' keys from /usbkey/config.

A possible area for improvement would be to integrate these keys into smartdc/bin/smartos_prompt_config.sh.

- Dimitri

@aglarond
Copy link
Author

Added the ipnat and static_routes persistence.

To use, set the following key in /usbkey/config:

config_inc_dir=config.inc

Then place ipnat.conf and/or static_routes into /usbkey/config.inc/. The format of the files is the same as in Solaris.

- Dimitri

@ghost
Copy link

ghost commented Jan 15, 2014

Please note that /etc/defaultdomain should never be set. The 'domainname' is not what you probably think; it is used only by certain SunRPC services such as NIS and the LDAP client in a certain obscure legacy mode. It has nothing whatever to do with DNS, and since the legacy name services are not supported by SmartOS should never be set.

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

Successfully merging this pull request may close these issues.

1 participant