From nobody Sun Nov 2 12:41:30 2025 X-Original-To: pkg@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 4czvV216n6z6Fh5w for ; Sun, 02 Nov 2025 12:41:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4czvV20YTHz3cwX for ; Sun, 02 Nov 2025 12:41:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762087290; 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=PArJCM5AabYQQzcZgJPk4mo8yjyf229K3kYo86DVPxM=; b=M/7rKlyLVVq7xa/T9ac1S8YGnmEAMsk7J9kzvz2pgJIamI7IzBAQYPg8grGpUGpiTdsThp 6ndlx7sxyriAbOurJDuW5BiSPn0Du9nHsTN7fAlFbNan79ZvBVfR0dcl7Wa7RwVOXqPrjp 7YzfKHbm3Zud4LbP8XjNaytyVZPebfij0slAyJFxdOE+UwPJSEAbgV33uMfpO5yr2RshEY sCstLLxgLXsLBUJPKDVUsYVlDXhw3qkf782CJ2ZfATiFT4vPb9PXqku4Cb+kByOTdl5dKm S8txo9T9H9Ky1FfH6b51FzjSI9B6VlcDKJLEukE4VJadLxjvvWQUeZnBkP8dnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762087290; 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=PArJCM5AabYQQzcZgJPk4mo8yjyf229K3kYo86DVPxM=; b=fxIF/dtetIk02HfZZUmNGkOPGgPVpu4ay4LLqNb30FjqqSF6uZEeSbzHjBAGDT2pRftirc wJboCOmUSCMEs+fme8yRP5PyeqKJJiremv4ml9izhEZwaSB8fBRz2pVrvQj0RhW9pIKP07 zp7LGrJPTcNXFC02Jz6Xj+Ubv0tXXivx/DiYCSPbgXQgaQsl4ijGZ8MgBFQ4nlYVHTcID0 +KEhxn9I7GDDsvHGALgyOXF4He4eWKfpVu5+nc2CuNx5Cvv7j2RlwS96RHIz4JpybMr/uj OXCFLvts2w6U+zFLgQsM7PoGuM7xPtLhCGASWs5/m49kF16e5Yk8sbdmoJgUtQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762087290; a=rsa-sha256; cv=none; b=waBVAay/cg0SX4/ZUDKn2hUvm2TXnIACPpetvWOXIZf1R+rsRNFb0wsr0Jbh5vQ3vBV0DR 44Ppsk4BJm2ztftmqMZGD4dHrKRKq9FrSnhEu3TDKeNfEreq3QwwjJ8nEI3I/SuCsF00L1 tMuUCD1d9LcrPh154jiK45bGKM8MFwA7aVyY8G70d5jKt7ACaSQnQSofaBpPf4skYYou3L cwjmEzBNpJK9WcVq9XRvnkYk/AxTPwf0diBBs2chLr2OQ99WF9ujRPrje9f3EU1or8mfil FjKSD7Gk5M2cStr/hbSF11YMm9rpJBifMr1zavYWglzUoED/zTfegAk1wM4qCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4czvV2010nz8wF for ; Sun, 02 Nov 2025 12:41:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5A2CfToB037150 for ; Sun, 2 Nov 2025 12:41:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5A2CfT94037149 for pkg@FreeBSD.org; Sun, 2 Nov 2025 12:41:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 290393] 15.0-BETA4: pkg blocks boot process waiting for console input Date: Sun, 02 Nov 2025 12:41:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: olgeni@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: re@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290393 --- Comment #4 from Jimmy Olgeni --- Made a quick experiment to get some more info. This put it back into shape: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh index 7815502dba39..85ed026b6aae 100644 --- a/usr.sbin/freebsd-update/freebsd-update.sh +++ b/usr.sbin/freebsd-update/freebsd-update.sh @@ -667,9 +667,15 @@ upgrade_check_kmod_ports() { local report local w - if ! pkg -N 2>/dev/null; then - echo "Skipping kernel modules check. pkg(8) not present." - return + # Check if the real pkg binary exists (not just the bootstrap wrapp= er) + # /usr/sbin/pkg is the bootstrap wrapper, /usr/local/sbin/pkg is the real pkg + if [ ! -x /usr/local/sbin/pkg ]; then + echo "pkg is not bootstrapped. Attempting to bootstrap..." + if ! env ASSUME_ALWAYS_YES=3Dyes pkg bootstrap >/dev/null 2= >&1; then + echo "Failed to bootstrap pkg. Skipping kernel modu= les check." + return + fi + echo "pkg successfully bootstrapped." fi # Most modules are in /boot/modules but we should actually look @@ -1102,13 +1108,23 @@ IDS_check_params () { # Return 0 if the system is managed using pkgbase, 1 otherwise. check_pkgbase() { - # Packaged base requires that pkg is bootstrapped. - if ! pkg -r ${BASEDIR} -N >/dev/null 2>/dev/null; then + # Check if the real pkg binary exists (not just the bootstrap wrapp= er) + # /usr/sbin/pkg is the bootstrap wrapper, /usr/local/sbin/pkg is the real pkg + if [ ! -x "${BASEDIR}/usr/local/sbin/pkg" ]; then + # pkg is not bootstrapped, attempt to bootstrap it non-interactively + if ! env ASSUME_ALWAYS_YES=3Dyes pkg -r ${BASEDIR} bootstrap >/dev/null 2>&1; then + return 1 + fi + fi + + # Verify pkg is functional + if ! pkg -N >/dev/null 2>&1; then return 1 fi + # uname(1) is used by pkg to determine ABI, so it should exist. # If it comes from a package then this system uses packaged base. - if ! pkg -r ${BASEDIR} which /usr/bin/uname >/dev/null; then + if ! pkg -r ${BASEDIR} which /usr/bin/uname >/dev/null 2>&1; then return 1 fi return 0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Then I found the issue! :D root@freebsd-15:/usr/sbin # pkg -N pkg: pkg is not installed root@freebsd-15:/usr/sbin # pkg -N -r / pkg: pkg is not installed root@freebsd-15:/usr/sbin # pkg -r / -N The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: -N is not happy about the positioning of -r, so the "pkg -r ${BASEDIR} -N" = is causing the hang. --=20 You are receiving this mail because: You are on the CC list for the bug.=