OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Kenneth R Westerback (krw_at_cvs.openbsd.org)
Date: Wed Oct 02 2002 - 19:56:44 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    CVSROOT: /cvs
    Module name: src
    Changes by: krwcvs.openbsd.org 2002/10/02 18:56:44

    Modified files:
            distrib/miniroot: install.sh install.sub upgrade.sh

    Log message:
    Divorce system hostname handling from network configuration.

    Every system has a name, and thus generated keys with that
    name, even if there is no currently configured network.

    So, ask for a system hostname before configuring the network.

    Eliminate /tmp/myname and just keep hostname set to the lastest name
    and FQDN.

    Construct /etc/myname from hostname as configuration data is being
    saved. Construct /etc/hosts (preserving the informative leading comment
    from the /etc/hosts file in etcXX.tgx) at the same time.

    Construct an appropriate /etc/hosts file even if the network is not
    configured.

    During upgrade, if the user enables the network using the existing
    configuration, don't ask about the domain name - just use the
    configured one.

    Take care to handle existing /etc/myname files which do not necessarily
    have a FQDN.

    Originally problem with hostname handling pointed out by beck.

    ok deraadt