From nobody Sat Jul 16 16:17:48 2022 X-Original-To: freebsd-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 4LlYKw5yHLz4Wvdy for ; Sat, 16 Jul 2022 16:17:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4LlYKw5M7Nz3hTb; Sat, 16 Jul 2022 16:17:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657988276; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9563fNWwHTGZmARCkMgYPZWOZSH82hgLNmW+dVfQMgI=; b=RET/scalpk952hrTCqT5zlN1JAHzmArvoRp8DpmxImBcW5TgnN8U7Bee+dF2n7bfSnxy88 gSPKoFXyQ0Xw2O/wW7CStCJuXGnfb65j/YJta9Kk3Aymw8ZJgnwj5VG94KYIY2qLDSgQh5 tn5BUuEGEEkjMXKrVfFsRpV1hNq31NHqnLUZKKu2qJTiME1bvO0acsItXmv+FsIytzQvia 6Ilx/Daixmek42iX+RGVFBHYm+2v7YvndG4Gm+cHqbpD4jUj2IskVoUNMlZStSmpof5dAM tzwYBCrBKVlyO9ysAWZu0fpxxt42NYM7glEVs9gqvkaz/0W2d7FZXKusYGb4Nw== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4LlYKw3fJqzV4h; Sat, 16 Jul 2022 16:17:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow-wifi.home.andric.com [192.168.0.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E5E51503F2; Sat, 16 Jul 2022 18:17:54 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_7D4187C9-4688-4E1D-B057-F9E07D0901E9"; protocol="application/pgp-signature"; micalg=pgp-sha1 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 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: About zfs upgrade From: Dimitry Andric In-Reply-To: Date: Sat, 16 Jul 2022 18:17:48 +0200 Cc: FreeBSD CURRENT Message-Id: References: To: Nuno Teixeira X-Mailer: Apple Mail (2.3696.100.31) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657988276; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9563fNWwHTGZmARCkMgYPZWOZSH82hgLNmW+dVfQMgI=; b=WHZT4E2aWZAcSFUyGNVNRL0W3jUWh2dRJzrFUNUoqg1ATKCiYyc6PDzd/Vmwxwid3I38HZ D8GPZbEdl5N0PFkr2Soclth7Q0RN+w8QjCgYTevXdIMQlKlI7UDt4mbxBfqs8B0Ous24Fc ZfB2uqhrFtUHZrXTQIuJbmGrbHg4y+ELN5nttlKKXd/Q0itQRjQuH94pVUOqPBd8xOTUg2 UG7ez9tUjQ2V6KMGeEB0wZJATxm5xkfMY7szDOhE1ZtiliW0iLj712SwYZBYU57KJGqFqe d5BUW/ecg9FrZDWPw6itnWO7Ll1vmWabl8QAh8+1Smmq/4/mfYAcRShKc+oiOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657988276; a=rsa-sha256; cv=none; b=CEZ8hwHbk5bI7ddI1ORDk2QCpL9jDlZBhaAC6tTtu7vcqrkI51EYycrKv0trPL7AUgVnf9 0WHXMekoMH60ocyv/7yS0G3sTR7MxqnbqqouAovXkDOOk0rLEh4Rcf1P6zyFHInOsBeXv3 D31Kc74fk/vmBCNVrYRs06hyGt7I63m0snECtXZkn6QHxk/xeKqXtEIHT0DDFp1fYUArNQ +gDnkQpxSEKsD5dM/UFCGU4HgyvYSpoFauicYQets01Eke8SZRwGYq0bxDCWBG3e43y8HX +S5SpxcVhCBW3hvCuESh1q9YOLeM+GzEZJ2EUiG6I19rM8+m+wqd6aSgL9yolg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_7D4187C9-4688-4E1D-B057-F9E07D0901E9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 16 Jul 2022, at 18:09, Nuno Teixeira wrote: > I'm about to upgrade zfs pool and I need to know the command to update = boot code on my efi config: > --- > gpart show > =3D> 40 2000409184 nvd0 GPT (954G) > 40 532480 1 efi (260M) > 532520 2008 - free - (1.0M) > 534528 8388608 2 freebsd-swap (4.0G) > 8923136 1991485440 3 freebsd-zfs (950G) > 2000408576 648 - free - (324K) > --- > Handbook says: > gpart bootcode -p /boot/boot1.efifat -i 1 ada1 >=20 > Should I use: > gpart bootcode -p /boot/boot1.efifat -i 1 nvd0p1 ? For gpart, you should specify the base device, i.e. nvd0. The "-i 1" = option indicates the partition. In any case, assuming FreeBSD 13 or later, you can just mount the EFI = partition and copy loader.efi over: mount -t msdosfs /dev/nvd0p1 /mnt cp /mnt/efi/boot/bootx64.efi /mnt/efi/boot/bootx64.old cp /boot/loader.efi /mnt/efi/boot/bootx64.efi That way you could also revert to bootx64.old if things go wrong. -Dimitry --Apple-Mail=_7D4187C9-4688-4E1D-B057-F9E07D0901E9 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYtLkrQAKCRCwXqMKLiCW o32cAKCxPFRZPdq3d5wWwphp317Az3xQEwCgh8ScImrq+0405UZXWg8ckIdOT2M= =1dlt -----END PGP SIGNATURE----- --Apple-Mail=_7D4187C9-4688-4E1D-B057-F9E07D0901E9--