From nobody Wed Nov 15 16:17:31 2023 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SVpGj6GvBz50SLf for ; Wed, 15 Nov 2023 16:17:33 +0000 (UTC) (envelope-from jhb@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SVpGj5lx4z3WsJ; Wed, 15 Nov 2023 16:17:33 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700065053; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6YZp8h00QTzL41QkxLbkol7za0044WY9JBjibH5Sddw=; b=e21FUCjwcGvCl1mN3xkdfa5lP89oAaueKbeUskYWf4a/2ZXS4PXUtLKJq0Bx6bRn1iS6YD 1wCuTa3oWjgqh82qusYF8r29nRCrOVgQ/iyqb5MqGehKu3JpdFwcl8YMsYSncxYdypSN7Z QAs66TiklCQAc+t9lAqOQOiZdki+U+KUGzfqMQZ9EZiJ5ufN1cVJ/kpprhyuCfasPO9ROh RLZF65RGXowyXKW5Zq1HX/6QlPmzSqm1WIFXrMKmkTwDgxZz0gql5KaAiIHTkqJFoAKQ5K 16ryCvRO1v1/HyHvEieUfWaOYCHOn50Bcx49NZuFFBXaIdqa4WiyUnNcIdLsMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700065053; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6YZp8h00QTzL41QkxLbkol7za0044WY9JBjibH5Sddw=; b=XFU7QJ4MrcmX1HcnBtAmc2aoq+mzLr/0Vp+F4lnKrWk6YoM1bWQ4cpVymbxTEEOKJll2HA 7Fh7fvTVCr0FKZ78ZK5MA0xOE9NSVR6qi/QuSls1hS3Pg0HP4Bxef+BEYV2MGmWmvS9Hig 4mTF4v74/l9XaxAF69kiZYSOS7FfzSQpmE/FHb44WRHy5t3Re4C7fxrkrXDnObUnLwvuzx NWuO6iiFl/0jiApvGBA8uYPEaczim47G2TJj57Ui6Vwy4bSMT3OUsBQikjn9Wehk7sl9Fj 0CNjRrsasRQZd+Yr4qxz6x5FVgabIu7+klZcudKhPZQ9roy8kW3BsxxgEt43Ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700065053; a=rsa-sha256; cv=none; b=WHXi4rIUR/GVnILN8sWuHwCotVGHXQT7YVRChbJlZuZVE6wxPimMsowvq4Yj9G115auwSs FON8Hb0YgNQ/t3Hfi3hgSNWUlIUBMBhHnEhmAN6fq5WSHNyp/fvG9KFXZ7PxQq/+WtWj+B 1Te+HUgJ2suF6IUORwaemNB5TJlD8X8WvOW8Dp+RxNwf0uDSONjJpSmJBsiHg2D+9/P6Qn SVSIBspSILHzHig4pJkMOTzIU7f5MUpiJSgheTz7f87PT/h8O6hd36Ux9TGQ+QSqoFfS3N 9kTn73dHif6h2Yc0H9YJtGCqYGtw+lNWQelq/jw+WFRaBjjewYxcecKX9Rp7Ug== Received: from [IPV6:2601:648:8384:fd00:7c48:55a7:81e0:3a0a] (unknown [IPv6:2601:648:8384:fd00:7c48:55a7:81e0:3a0a]) (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) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SVpGj2x74z3R8; Wed, 15 Nov 2023 16:17:33 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <7baa3bd9-029c-440a-82a9-60a5098a9a1c@FreeBSD.org> Date: Wed, 15 Nov 2023 08:17:31 -0800 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bsdinstall/scriptedpart could not run ;-( Content-Language: en-US To: KIRIYAMA Kazuhiko , FreeBSD Current References: <202311130700.3AD700uN016693@kx.truefc.org> From: John Baldwin In-Reply-To: <202311130700.3AD700uN016693@kx.truefc.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/12/23 11:00 PM, KIRIYAMA Kazuhiko wrote: > Hi, all > > I usually run bsdinstall by instllerconfig, but > bsdinstall/scriptedpart could not run ;-( > > My installerconfig is: > > PARTITIONS='nda0 gpt { 200M efi, 804G freebsd-ufs /, 128G freebsd-swap }' > DISTRIBUTIONS='base.txz kernel-dbg.txz kernel.txz lib32.txz tests.txz' > ZFSBOOT_DISKS="" > > #!/bin/sh > /bin/mkdir -p /.dake > /bin/cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime > /bin/cp /root/.cshrc /root/.cshrc.org > /bin/cat <> /etc/fstab > 192.168.1.17:/.dake /.dake nfs rw 0 0 > EOF > sed -i".bak" -Ee '/^#BDS_install.sh_added:start_line$/,/^#BDS_install.sh_added:end_line$/d' /root/.cshrc > /bin/cat <<'EOF' >> /root/.cshrc > #BDS_install.sh_added:start_line > setenv PATH ${PATH}:/.dake/bin > setenv MGRHOME /usr/home/admin > setenv OPENTOOLSDIR /.dake > setenv DAKEDIR /.dake > #BDS_install.sh_added:end_line > EOF > : > (snip) > : > > I investigated in bsdinstall script and found scriptedpart > which acutually run partedit with scriptedpart would not be > destroy existing partition. In fact scriptedpart -> partedit > changed in script as follows, then parttion editor run at > terminal. My guess is something to do with commit 23099099196548550461ba427dcf09dcfb01878d, though I don't see how it could work any differently in this case as the only change to part_config there was to return if if geom_gettree fails, and if it fails, provider_for_name would presumably have failed anyway. -- John Baldwin