Scripting bsdinstall

KIRIYAMA Kazuhiko kiri at truefc.org
Fri Dec 27 11:04:52 UTC 2019


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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> 
---
Kazuhiko Kiriyama <kiri at truefc.org>


More information about the freebsd-hackers mailing list