Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2012 15:30:02 GMT
From:      J B <jb.1234abcd@gmail.com>
To:        freebsd-sysinstall@FreeBSD.org
Subject:   Re: bin/172846: bsdinstall(8) - setting hostname
Message-ID:  <201210181530.q9IFU2vO080585@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/172846; it has been noted by GNATS.

From: J B <jb.1234abcd@gmail.com>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210181530.q9IFU2vO080585>