From owner-freebsd-hackers@freebsd.org Fri Dec 27 11:04:52 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E04131EA493 for ; Fri, 27 Dec 2019 11:04:52 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (flets-sg1026.kamome.or.jp [202.216.24.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp", Issuer "smtp" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47kkVq2kfFz3yvK; Fri, 27 Dec 2019 11:04:50 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (kx.truefc.org [202.216.24.26]) by kx.truefc.org (8.15.2/8.15.2) with ESMTP id xBRB4e55050686; Fri, 27 Dec 2019 20:04:40 +0900 (JST) (envelope-from kiri@kx.truefc.org) Message-Id: <201912271104.xBRB4e55050686@kx.truefc.org> Date: Fri, 27 Dec 2019 20:04:40 +0900 From: KIRIYAMA Kazuhiko To: Gleb Popov Cc: freebsd-hackers Subject: Re: Scripting bsdinstall In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 MULE XEmacs/21.4 (patch 24) (Standard C) (amd64--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 47kkVq2kfFz3yvK X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of kiri@truefc.org has no SPF policy when checking 202.216.24.26) smtp.mailfrom=kiri@truefc.org X-Spamd-Result: default: False [0.74 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.36)[-0.357,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.04)[-0.038,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[truefc.org]; AUTH_NA(1.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:4704, ipnet:202.216.0.0/19, country:JP]; IP_SCORE(0.04)[asn: 4704(0.16), country: JP(0.03)]; ONCE_RECEIVED(0.10)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Dec 2019 11:04:52 -0000 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