From nobody Wed Jun 25 22:41:56 2025 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 4bSGz43CVcz5ydmG for ; Wed, 25 Jun 2025 22:42:08 +0000 (UTC) (envelope-from olivier@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bSGz35jkHz45tx for ; Wed, 25 Jun 2025 22:42:07 +0000 (UTC) (envelope-from olivier@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750891327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=EN2ILduB12qIs2/SaiQW1dwY/+bu+cvw6SdDFqXLQvc=; b=seCfMChGio5ujXrSNd+4W26BFEzIuS8ksF3K1EGyG5BG0o3mLpdBTDaPiqY9oy3Voh7So5 3sslRrdEd+M9kJWYh9KU/LC2n+Y4w7LWVCYPRNyR348L7MxJxOfYnaPJJVO1n3atOt+hn0 UunHfHldJfqX7zHKgvXe8CrXKl8L+e28uOXBTFjpOJWNipcXpiFBg+KxiWpOV17lxC9smL CGdswTzHiGny0eg/gHGm+csWLzF17OIVQybKGdqyjwoe4hDTyuUiZ+oV9Xax8P9TCbBT+N lc1vdIjfJFjAC10cbQF3HojfgjrvledUwE5U6M0kCqbwMIYEQ66n6ag9XYfhPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750891327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=EN2ILduB12qIs2/SaiQW1dwY/+bu+cvw6SdDFqXLQvc=; b=I5er1OxGRLnhcioAzdKo9TS8fjnDEUrWOvFjeWGtIlEM4qY805WgyZdbtF2httoFhyL4YL 9l1cEd6KXzr4jVe5JFc3zXIMsLt1nfEXdm/uaaqFcTxIgGCbZ3zT2skqo+VmffeWxi3n9o w7hKeCe+mmQYo82i+ABzkKP48YR7bH/3KFY7Fgk6VJMOZvqg81M6mkom9IgDwRQS/DL77b kxUdcTGutUlpW+QP31PY1+N/gXnoWiwWWC86ijFaXE9HJXpk/YCTxQNNusw1mRuZ37eckx 16C+0gYKwpRvk/p8QKWr3eS48haj8qlPLyKNWWWI1riawlp//T8duVth6TZSHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750891327; a=rsa-sha256; cv=none; b=RkRTMo6ybElybyoIqapRB2HMdR1Z0jidix/rX2V+eGs10VgfRS2V1hc+oh2RboCWnckdPv yYnLQ6ms8mr04oNylL63QhAx32cJ21GfFth8iwgw3nMUdC1zWzjFUrQwn2AVzL9+GCNya9 zAUNwbHd9MVbqVB6OEx950U44GFapAng/dD18+r9gz+j2BYJBk0Dl0UqSsj+dujZ3CEW98 W6IcF4jZUD/D1TUHnky0QBmysCAC8Z5kaExyuO/22QmQxO8mJ3H6cMfzMUw2zAGE7Efv2S pItR58VV4JKRy6MoP/W7f5cOghyns8i7vCvv9NRE0yIGvql3rULIeBlI5ChbVw== Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) (Authenticated sender: olivier/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4bSGz35GPwzClZ for ; Wed, 25 Jun 2025 22:42:07 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: by mail-qv1-f43.google.com with SMTP id 6a1803df08f44-6fad4a1dc33so4632806d6.1 for ; Wed, 25 Jun 2025 15:42:07 -0700 (PDT) X-Gm-Message-State: AOJu0YwuqnBdIwU5Ylemm5oHxmt6YQUGj6SELZnldGrWiCCp3JeqCCF5 +c9WeOWt8DIAynqrpFy6wVnT6dyHBnTov6AJ7a9UoMTtGWeWXKZ+ee0qx+chnppvJ0Mu6uC7KQw 725+1kKF1SIHs2ygSNayxIb8SwvDvUtQ= X-Google-Smtp-Source: AGHT+IGxYWdAukJdCWnJHlDJRqSwcspf7neaKnUt8ozQHtF+6apReyOzJ133DlHA9C6rUPDHdo2G7KyJuTawqrlt/LM= X-Received: by 2002:a05:6214:2425:b0:6fd:8fc:e2fa with SMTP id 6a1803df08f44-6fd5efba22dmr88480846d6.32.1750891327215; Wed, 25 Jun 2025 15:42:07 -0700 (PDT) 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 From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Thu, 26 Jun 2025 00:41:56 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXwmWa8-J4OmROmaPACbz7f-0jBv55WOpa1R82kZZJALpZaLo3Po5SBQA5g Message-ID: Subject: Broken ZFS boot with current (including June 2025 stabilization week) To: freebsd-current Content-Type: multipart/alternative; boundary="000000000000995ff706386d2794" --000000000000995ff706386d2794 Content-Type: text/plain; charset="UTF-8" I've noticed that a critical library, such as libtpool.so.2 used by ZFS, is now installed in /usr/lib instead of /lib. This prevents a freshly installed system from booting properly. Here is the relevant storage layout triggering it (/usr in a dataset): NAME USED AVAIL REFER MOUNTPOINT zroot 87.4G 126G 96K /zroot zroot/ROOT 57.4G 126G 96K none zroot/ROOT/15.0-CURRENT-20250623.082321 57.3G 126G 24.2G / zroot/ROOT/default 3.38M 126G 11.2G / zroot/tmp 102M 126G 102M /tmp zroot/usr 29.6G 126G 96K /usr (etc.) The bootloader can mount /, but once that is done, it calls ZFS to mount other directories (/usr, /tmp, etc.). The issue is that ZFS requires libtpool.so.2, which is not mounted at this stage. Consequently, the system ends up with the error: Mounting local filesystems:. ld-elf.so.1: Shared object "libtpool.so.2" not found, required by "zfs" Regarding upgraded systems, you will have the old libtpool.so.2 in /lib and the new one in /usr/lib. The old library is the one that allows the system to finish booting, so it should not be deleted. Regards, Olivier --000000000000995ff706386d2794 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've noticed that a critical library, such as libtpool= .so.2 used by ZFS, is now installed in /usr/lib instead of /lib. This preve= nts a freshly installed system from booting properly.
Here is the releva= nt storage layout triggering it (/usr in a dataset):
NAME USED AVAIL REFER MOUNTPOINT
zroot 87.4G 126G 96K /zroot zroot= /ROOT 57.4G 126G 96K none
zroot/ROOT/15.0-CURRENT-20250623.082321 57.3G = 126G 24.2G /
zroot/ROOT/default 3.38M 126G 11.2G /
zroot/tmp 102M 126= G 102M /tmp
zroot/usr 29.6G 126G 96K /usr
(etc.)


The bo= otloader can mount /, but once that is done, it calls ZFS to mount other di= rectories (/usr, /tmp, etc.). The issue is that ZFS requires libtpool.so.2,= which is not mounted at this stage. Consequently, the system ends up with = the error:
Mounting local filesystems:. ld-elf.= so.1: Shared object "libtpool.so.2" not found, required by "= zfs"

Regarding upgraded systems, you will have the old l= ibtpool.so.2 in /lib and the new one in /usr/lib. The old library is the on= e that allows the system to finish booting, so it should not be deleted.Regards,
Olivier
--000000000000995ff706386d2794--