From owner-freebsd-hackers@freebsd.org Sun Dec 15 12:51:43 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 960CE1EC74B for ; Sun, 15 Dec 2019 12:51:43 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47bPRg3VSFz4W6y for ; Sun, 15 Dec 2019 12:51:43 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: matthew/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 3349E1321E for ; Sun, 15 Dec 2019 12:51:43 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [IPv6:2001:8b0:151:1:bd80:f1b6:fcf1:ef24]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 189012019 for ; Sun, 15 Dec 2019 12:51:41 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/189012019; dkim=none; dkim-atps=neutral Subject: Re: Scripting bsdinstall To: freebsd-hackers@freebsd.org References: From: Matthew Seaman Autocrypt: addr=matthew@FreeBSD.org; prefer-encrypt=mutual; keydata= mQINBFJIL80BEADi7/VbnnErDU6pjEhI/SzEZ/HbDRkJ5g7HroAtqIRm6nj8ZwOAgZ/2ZnWn 5F+fXTuLsG0FLNtkd17FoVcuCi5e/GPliXI5cmamV7E1Yz4T8UsJ7RQolimyxVexccKd16Tc AA7B9bFlJSKkBUSD0buj7VjT07xWhRzu6Vgi5r0UjLALYJz977uZA0F1aOGOXREDEAOhdcNc kSNjynqAwDA6dCT1Elpi4key1fYjv4jyDF+GU/YXul2Y/rguA8FCkHd9vyym5eAsLQ5mG00V V9fkEHIpH5KorNVnl/ufHXnkZqmHAZVpFDcrshb7aZ/pL45PXyWgLj+e6etelgj3a2bZi0JF cVdXCnBZVP2oIyYblM11ugTbfCwodORU8a5KfPeztMdAtDr4e+32NTrPdPi5rLT+GUsYz+PL 3A3m3u8bdsFp40DlIrBtSByVjqERxcfhphrEB4J8BXHUG7OAtXkZMlW/PGKDwXJq0O6Z5Tcg YHAoEiSWbXiexHgXNJyP+sqnIlhLWhSJGeJ+C83wqI6oYlZUCW00NkPxcIHnQPV/z+5wQVci TMyaWC2YCIHz4Ljs+TnwWMz0E8PNFDfHVbQ0W4PRGV7gRAqxfL+yKufauIEGbEq8rNDbSwL3 bcUCxR4ZDlaUEUwT4J8naf7rjdgiEYHs2Ig3jeK1+ER4FPG1sQARAQABtCRNYXR0aGV3IFNl YW1hbiA8bWF0dGhld0BmcmVlYnNkLm9yZz6JAlQEEwEKAD4CGwMFCwkIBwMFFQoJCAsFFgMC AQACHgECF4AWIQRyz6whebywJLW1RZADb2ye5/OevwUCWttU6gUJDFmAlAAKCRADb2ye5/Oe v7D/EACF6YL98cq6u20rai9gDCS+XY7HDGxowreE2HTAZXQmJTatSaEgiJMJUXfjXn7U/L+q zFhjOC2kiOze1yIWrptoxFa29lSUi3jWH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UriEtH+EOXl+dYbjlNUjFPjJu49cZbtp/1TpsYOBdME1QLM1TPanYXa7tb+IrRZN+Oi9i9VV ym16DK7q21k3j0qRC0s= Message-ID: <96ecfc02-04f6-7222-4582-3740c505c7e5@FreeBSD.org> Date: Sun, 15 Dec 2019 12:51:38 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Zarp4nHAU0DLl7m62uDq23hTJqNlYaTk1" 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: Sun, 15 Dec 2019 12:51:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Zarp4nHAU0DLl7m62uDq23hTJqNlYaTk1 Content-Type: multipart/mixed; boundary="S6koaFF5hmWbrAgo5eFrwvsw5xlg5MReR" --S6koaFF5hmWbrAgo5eFrwvsw5xlg5MReR Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 15/12/2019 09:52, Gleb Popov wrote: > - How do I setup networking on target machine? Examples propose running= > sysrc ifconfig_em0=3DDHCP, but how do I know interface name? For interfaces, you can just say: sysrc ifconfig_DEFAULT=3DDHCP and it will match any interface name that doesn't have a more specific ifconfig setting (so, not lo0). Only works for IPv4 as far as I can tell -- saying 'ifconfig_DEFAULT_ipv6=3D"inet6 accept_rtadv"' doesn't hav= e the desired effect of enabling SLAAC everywhere. > - Same question goes for target drive. In most cases it is ada0, but ho= w do > I dynamically find it out? This one is trickier. You can't feasibly write a generic zero-knowledge install script: there are too many variables to deal with. Basically you're going to have to assume some knowledge about what disks are present in your systems and how they are connected. If you know you're always going to be attaching your drives to an on-board SAS controller, then /dev/ada0 is the right choice. If you need to handle systems with larger numbers of drives which may be hanging off various different flavours of host bus adaptor or RAID controller and you need to create (for example) some complicated ZPOOL of multiple vdevs with hot spares and separate intent log or cache devices; well, perhaps in that case aim for a basic single-disk install (perhaps on a temporary device like a USB stick), get the minimal system up and then script building your more complex storage solutions from within that self-hosted and running system where you have the full power of the shell and all the normal management tools available to you. Cheers, Matthew --S6koaFF5hmWbrAgo5eFrwvsw5xlg5MReR-- --Zarp4nHAU0DLl7m62uDq23hTJqNlYaTk1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAl32LFpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5 RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp 5OdiWQ//bo/nEIjoltNR1eCzmaEkFIGuGogZuJewKJvFJR7XFz+O6znSWuQTv50n oFBJxoVGit9FlaT+gfF7B7hUrfIC8KtiSVU/ywyyOqSliNzCgD9LLur2uml9weym RVeoiIKerRIrV751kg5jrG20AuCyK8dMlTOr0qjRb8SiSURuR1HsvtsaSWtsCtpc 8h0XwLjS3Op32y2EdmVy5v+kI3/LNgt7M+TPgV2CzZ/X2qoJQlFCIc4dupa6+M5R YAQqeM0FRo3SqrUVPeYMiFwEKA+ZBeWa8djNVBf8z0gLFLs5vU7pn6cgFHTUBY7Z HuzmDzJcj15h4QMFKVmAP5L0lxMT5xBhbXmCN0Bum/J8uaNjZeTOLtS5b09ZUOnK Ria3LBwgLXAbn+1mSfW6Ia5+DRlioypgZ2WK+NxgdRWC5yr/kXMer2dg/V2vEksH rzzFlIWdv+83U8ws+iQ1PcfkMp7QlGAW2Xrb06zIV9MqwnG9vRBPlveH5GIk3o8R KuaCMdACj466YURnvSizHmQWxyHzx05qUoDhcijgunZalO2Kj1mFTFu/KqU5TWSr 5cf3vAmiMyLYRziKNAzT4jNXiiVFGM2n7sIc/vB9qgmbhavkA0zT5XNAc5iGLzEW ivgOn0kqYps3wu3V3wpHDNmasr6zoGtL5wP8x+ZB/3pKi8OJq+4= =C/AQ -----END PGP SIGNATURE----- --Zarp4nHAU0DLl7m62uDq23hTJqNlYaTk1--