From owner-freebsd-sysinstall@FreeBSD.ORG Thu Oct 18 15:30:02 2012 Return-Path: Delivered-To: freebsd-sysinstall@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D93024BE for ; Thu, 18 Oct 2012 15:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id C0FD58FC08 for ; Thu, 18 Oct 2012 15:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9IFU2kw080586 for ; Thu, 18 Oct 2012 15:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9IFU2vO080585; Thu, 18 Oct 2012 15:30:02 GMT (envelope-from gnats) Date: Thu, 18 Oct 2012 15:30:02 GMT Message-Id: <201210181530.q9IFU2vO080585@freefall.freebsd.org> To: freebsd-sysinstall@FreeBSD.org Cc: From: J B Subject: Re: bin/172846: bsdinstall(8) - setting hostname X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: J B List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2012 15:30:02 -0000 The following reply was made to PR bin/172846; it has been noted by GNATS. From: J B To: bug-followup@FreeBSD.org, jb.1234abcd@gmail.com Cc: Subject: Re: bin/172846: bsdinstall(8) - setting hostname Date: Thu, 18 Oct 2012 17:21:56 +0200 This might be helpful. $ cat /usr/sbin/bsdinstall ... exec /usr/libexec/bsdinstall/$VERB $@ 2>>"$BSDINSTALL_LOG" ... $ cat /usr/libexec/bsdinstall/auto .. bsdinstall hostname || error ... finalconfig() { ... "Hostname") bsdinstall hostname finalconfig ;; ... } $ cat /usr/libexec/bsdinstall/hostname ... echo "hostname=\"$HOSTNAME\"" > $BSDINSTALL_TMPETC/rc.conf.hostname ... $ grep -r BSDINSTALL_TMPETC /usr/libexec/bsdinstall/ ... /usr/libexec/bsdinstall/config:cat $BSDINSTALL_TMPETC/rc.conf.* >> $BSDINSTALL_TMPETC/rc.conf /usr/libexec/bsdinstall/config:rm $BSDINSTALL_TMPETC/rc.conf.* /usr/libexec/bsdinstall/config:cp $BSDINSTALL_TMPETC/* $BSDINSTALL_CHROOT/etc ... /usr/libexec/bsdinstall/hostname:echo "hostname=\"$HOSTNAME\"" > $BSDINSTALL_TMPETC/rc.conf.hostname ... jb