Date: Fri, 27 Dec 2019 20:04:40 +0900 From: KIRIYAMA Kazuhiko <kiri@truefc.org> To: Gleb Popov <arrowd@freebsd.org> Cc: freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Re: Scripting bsdinstall Message-ID: <201912271104.xBRB4e55050686@kx.truefc.org> In-Reply-To: <CALH631=S0d9kmYRNrG5PVg9rqUF80Ko_Z5DsP=9dGKQKodW5Hg@mail.gmail.com> References: <CALH631=S0d9kmYRNrG5PVg9rqUF80Ko_Z5DsP=9dGKQKodW5Hg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Gleb On Sun, 15 Dec 2019 18:52:44 +0900, Gleb Popov wrote: > > Hello. > > I'm trying to write my own installerconfig script to perform [almost] > unattended install, but facing some problems: > > - Script examples in `man bsdinstall` use some variables (PARTITIONS and > nonInteractive) that aren't documented in the man. Where do I find all > supported variables? `/usr/sbin/bsdinstall foo' execute /usr/libexec/bsdinstall/foo, /usr/libexec/bsdinstall/foo include /usr/share/bsdconfig/*. For example, /usr/libexec/bsdinstall/script include /usr/share/bsdconfig/{dialog.subr,variable.subr}. Almost globally used variables are defined in /usr/share/bsdconfig/variable.subr. In the case of ZFS,necessary variables for installation are defined in /usr/libexec/bsdinstall/zfsboot. But if you use ZFS filesystem by installerconfig, few bugs still exist [1]. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229628#attach_194980 > - How do I setup networking on target machine? Examples propose running > sysrc ifconfig_em0=DHCP, but how do I know interface name? > - Same question goes for target drive. In most cases it is ada0, but how do > I dynamically find it out? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > --- Kazuhiko Kiriyama <kiri@truefc.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912271104.xBRB4e55050686>