From nobody Wed May 29 19:34:26 2024 X-Original-To: dev-commits-src-all@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 4VqKMQ266Vz5L8bx; Wed, 29 May 2024 19:34:26 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VqKMQ1Xg8z51FL; Wed, 29 May 2024 19:34:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717011266; 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; bh=BvnK68/1fk7W/SIme4EIIvyJXN8xvcGy+RCHhmTzm1A=; b=D7MQur7n2+lr3dfGVNSP4djAaCRY8zJB0t/r3ysS2X8GIwXzjAAXEFb8w0aPhNdn9RGh6/ n2LC0W3X6fHrsnKc2Jo8PvcgMyX6ArAn2nT50sklHV4iD3E0jGrpWnKFVFhRWvLi/5N8yy JJRwlHjdrplK6Ybwv8Pw6DGgaLrfBbFl/5BK2TN3uBDSzoMfKnt+V5O3SnLqYrNUQgyQhe +mhq524B8AG5WiL3TtszdA//v2DcRDvOfpOZ2oR774WP6HTPjBttw/5mOFyqC/WFdpr2M9 ktDsbzJuSNelEKqX7QJjSnbh4R+XU0TpjFvRKb//zG6FOMFzlgqy4bzgV+BOGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717011266; a=rsa-sha256; cv=none; b=xRS73K/bk13s7w88N7BZeIoK/c5Ck1jvYvdDGF5qHoryGq5D0vbm9C0onlmrNJRyuZFxCF Ud6OmGR6gLIHHLMmj78+Cgs7bt5OTnXSt9xbQxLVyQbkb0+2vutMhtoquR0vT9v1nTcjQI ItrwVQT/94vkYAIo4dkeJXo2Pk1YYHapf60eAK0IzQhqQzML2RewQA2M4MAzbXrAnjKdB8 Fy6dpYbMvi9/tfZt1s/X0orCtaqmgCfpJ1c2Dl7FKXT2m69F1gcXXTaVJX84/kQl4kYeAv UCuWbUidv2sOGNV3o8u20ahGbUv18SwRNmFz0TMKO2w0kDtnxcFdVariY3ldBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717011266; 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; bh=BvnK68/1fk7W/SIme4EIIvyJXN8xvcGy+RCHhmTzm1A=; b=sj0pRCpDGNjKfF0J96b6nHjBhS3FJAhqJinxWM445jCDLsebcssMiseyqmKD3bUhBMJ015 yiz0++peNj7mCjiL19OQw1aZ6u3kyoXQHnL/V4FEn9AaSlz1p4v7PnAlFjuJOKlYHURrdz oPxfgKz94/kLYf+gZFdQWApoqi5PIVTAJGf1S8R3BUq1730CKELpbGju06t8yYwmFMteu2 BhdDklQUFX/J6D9Mjasn0MZZY6o4UpLkwRRRyjORnfaH8pwfvag9o8UbliwZsh9NYBw131 jdxzqx5+/rrujvFwbQ4Yh7k8W9lgD9nqS71Whf+E3mpQXmd4IXwPhhoqdkxnyA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4VqKMQ153Hz188V; Wed, 29 May 2024 19:34:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44TJYQKI005563; Wed, 29 May 2024 19:34:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44TJYQvE005560; Wed, 29 May 2024 19:34:26 GMT (envelope-from git) Date: Wed, 29 May 2024 19:34:26 GMT Message-Id: <202405291934.44TJYQvE005560@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: f13275cf03ae - main - export $autoboot var when running from $boottrace_cmd List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f13275cf03ae3ce220efb7a323f73290276a731f Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f13275cf03ae3ce220efb7a323f73290276a731f commit f13275cf03ae3ce220efb7a323f73290276a731f Author: Alex Samorukov AuthorDate: 2024-05-28 14:45:30 +0000 Commit: Warner Losh CommitDate: 2024-05-29 19:29:53 +0000 export $autoboot var when running from $boottrace_cmd At the moment, if bootrace profiling is enabled, autoboot is not exported to the rc scripts. This causes fsck to not check the root filesystem. To fix this, pass _boot, rc_fast and autoboot to the boottrace process to mimic what diretly sourcing the rc.d scripts. PR: 278993 Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1261 --- libexec/rc/rc.subr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr index 1b0fdc837228..2fd4796b569f 100644 --- a/libexec/rc/rc.subr +++ b/libexec/rc/rc.subr @@ -1856,7 +1856,8 @@ boottrace_fn() set $_arg; . $_file boottrace_sysctl "$_file done" else - $boottrace_cmd "$_file" "$_arg" + _boot="${_boot}" rc_fast="${rc_fast}" autoboot="${autoboot}" \ + $boottrace_cmd "$_file" "$_arg" fi }