From owner-freebsd-hackers@freebsd.org Fri Dec 27 11:30:02 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 27EBC1EACE6 for ; Fri, 27 Dec 2019 11:30:02 +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 47kl3s1HTsz41JW for ; Fri, 27 Dec 2019 11:30:00 +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 xBRBTrqD050866; Fri, 27 Dec 2019 20:29:53 +0900 (JST) (envelope-from kiri@kx.truefc.org) Message-Id: <201912271129.xBRBTrqD050866@kx.truefc.org> Date: Fri, 27 Dec 2019 20:29:53 +0900 From: KIRIYAMA Kazuhiko To: Mike Remski Cc: Subject: Re: Scripting bsdinstall In-Reply-To: References: <96ecfc02-04f6-7222-4582-3740c505c7e5@FreeBSD.org> 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: 47kl3s1HTsz41JW 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.06 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.72)[-0.724,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.47)[-0.474,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[truefc.org]; AUTH_NA(1.00)[]; RCVD_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[comcast.net]; 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:30:02 -0000 On Wed, 25 Dec 2019 20:15:21 +0900, Mike Remski wrote: > > On Wednesday, December 25, 2019 4:31:50 AM EST, Gleb Popov wrote: > > On Sun, Dec 22, 2019 at 9:47 PM Gleb Popov wrote: > > > >> On Sun, Dec 15, 2019 at 4:51 PM Matthew Seaman > >> wrote: > >> ... > > > > I had to do all these "bsdinstall" invocations in the preamble because I > > wanted to set up partitions in my way. It turned out that the value of > > PARTITIONS variable is directly passed to "bsdinstall scriptedpart", so my > > installerscript got reduced to > > > > DISTRIBUTIONS="base.txz kernel.txz lib32.txz" > > PARTITIONS="ada0 gpt { 512K freebsd-boot , 2G freebsd-ufs / , 4G > > freebsd-swap , 8G freebsd-ufs /var , 4G freebsd-ufs /tmp , auto freebsd-ufs > > /usr }" > > > > #!/bin/sh > > > > sysrc ifconfig_DEFAULT=DHCP > > > > It now works, and even the second part gets properly executed. > > > > However, no boot loader gets installed. Skimming through "bsdinstall > > bootconfig" source reveals that it only supports installing boot files for > > UEFI loader. What should I do in case of BIOS? > > Isn't the BIOS bootcode installed via the gpart bootcode command? I > haven't looked at any source, but it seems like it should be there around > the partitioning stuff. Partition type could be specified directly in PARTITIONS. For example, in the partion like this: root@vm:/vm/test # gpart show md0 => 63 6291393 md0 MBR (3.0G) 63 2016 - free - (1.0M) 2079 110502 1 fat32lba [active] (54M) 112581 6178875 2 freebsd (2.9G) root@vm:/vm/test # In the case of VM,it should be wrote in installerconfig: PARTITIONS='vtbd0 mbr { 54M fat32lba, 3G freebsd }; vtbd0s2 bsd { 3G freebsd-ufs / }' DISTRIBUTIONS='base.txz kernel.txz' ZFSBOOT_DISKS='' #!/bin/sh : > _______________________________________________ > 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