bin/172846: bsdinstall(8) - setting hostname
J B
jb.1234abcd at gmail.com
Thu Oct 18 15:30:02 UTC 2012
The following reply was made to PR bin/172846; it has been noted by GNATS.
From: J B <jb.1234abcd at gmail.com>
To: bug-followup at FreeBSD.org, jb.1234abcd at 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
More information about the freebsd-sysinstall
mailing list