From nobody Sat Mar 22 17:47:26 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 4ZKmy45bJMz5qn4b for ; Sat, 22 Mar 2025 17:48:28 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from mx0b-00273201.pphosted.com (mx0b-00273201.pphosted.com [67.231.152.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "Sectigo RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZKmy43f25z3Sx7 for ; Sat, 22 Mar 2025 17:48:28 +0000 (UTC) (envelope-from sjg@juniper.net) Authentication-Results: mx1.freebsd.org; none Received: from pps.filterd (m0108162.ppops.net [127.0.0.1]) by mx0b-00273201.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 52MASlaX013200; Sat, 22 Mar 2025 10:48:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h= cc:content-id:content-type:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=PPS1017; bh=do0UKAJhRZPTy 6n3fscwOaaCB37xbrlj8zjjlTEy63c=; b=Y2ijn32mOtw634gRgDD07xZ3moLpm 3vxP6/r3CFIx/EDNXCj6lc0rSM19bBk6VF2emZwWUXOc6uoDgaWeGgOyqD76cLhc 6SXRXMXckHnbPxVUaVAXyezMcPdmQcTgk19/BA/y/ue8t3x+CKUls6jPZcdC4tFa 4qGAEDnZ05/oMplg3gbhmUVDI+OcDZTM1CuMf4OYS6rK0NeWEn8VphjhoG9d4gKs TvuwW+njAXRRar0VWOmybrRkU7t1l0QTxfe8PgMt/VmewdpfUYwmt2l/f6NABLnZ S0mHfdFmMHm+l6ryOvebzdOeyAOoywvSwoeiZj5ZIyif1TKXHFJx5UXWA== Received: from bl2pr02cu003.outbound.protection.outlook.com (mail-eastusazlp17010005.outbound.protection.outlook.com [40.93.11.5]) by mx0b-00273201.pphosted.com (PPS) with ESMTPS id 45huf88fg2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Mar 2025 10:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uKP9S45I7z81aCkg3siqmAcZlTkNiM/lLpPH4Z3bE03Cmb/iIK7bWyJs9MchR97ADQ78rYHfj73av9jEVs5HAlikGpkYh6fFmtufFY+Cb4y3mcTp6/6GV3453TZx2LZ6SSn+VKKB+oWl+G1oT3wGfab14SMzWIwYYHkBOet5cIrLExIm+vpbbdCfjm9W8+s/05JxHfSKmg2700jNQwACRXj7l4vIqweBlRYve0uhZlGM0I7r8Ncbzd+6mJbhbCfbx2reai0IH6mMcWY2oh+ki8LABC2YYVXm4u/hStInpI3JRZePTyI+vGboOhikBjD4bbgHe+S+72+k0PXnYbWiKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=do0UKAJhRZPTy6n3fscwOaaCB37xbrlj8zjjlTEy63c=; b=BnlwnwnxuYSoHQFKMq68Im17qyUB8zJXnK/z9al48/24i5Yc8+tA34tfX+Z4aEkQtA1lllGtMMtSnrgcYCVMrEJDuzTz2XNleyplSKZ0yhtLCLuCgDvxuDYtMjnbK7ByBj0b1Qbw/LM18sKdKeNEsHJNhlkCw2X+d2g7lMLbTLPkJzJw+r1K1mwZXfk2h9+jWsr4ANtwfzm+W0PE1hmm4DnKOlFX0L5Uq97gxIJzQVZ8HGUTC8Qyztm2q7WaBC/DolFIax+oVDS7+zmCW6kZzXn+C3o/C1N389mDzlIDaGyt8QGs1qB22A0G8hCB8dJC3sqGTtZu+YeBUlLMEVe5bw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=softfail (sender ip is 66.129.239.15) smtp.rcpttodomain=stevengharms.com smtp.mailfrom=juniper.net; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=juniper.net; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=do0UKAJhRZPTy6n3fscwOaaCB37xbrlj8zjjlTEy63c=; b=GJZeylaAEyagtnJEjaYRLVs90QTqVA6Zk48rGzj447I75fYb/da7S5U0nrksIuYAohC5lyMm0qQvIBdw2hadLEX/EOuNvzDGen79Ugti3cNTQHOsOab3vNQ+/zoRjVL7F7+u+E8PqBGUOqiE3uY8+h5Bj62gYDijAn03HOGK+Zs= Received: from BL0PR02CA0025.namprd02.prod.outlook.com (2603:10b6:207:3c::38) by DS0PR05MB9592.namprd05.prod.outlook.com (2603:10b6:8:131::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.36; Sat, 22 Mar 2025 17:48:17 +0000 Received: from BL6PEPF00020E5F.namprd04.prod.outlook.com (2603:10b6:207:3c:cafe::7e) by BL0PR02CA0025.outlook.office365.com (2603:10b6:207:3c::38) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8534.36 via Frontend Transport; Sat, 22 Mar 2025 17:48:17 +0000 X-MS-Exchange-Authentication-Results: spf=softfail (sender IP is 66.129.239.15) smtp.mailfrom=juniper.net; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=juniper.net; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.15 as permitted sender) Received: from p-exchfe-eqx-02.jnpr.net (66.129.239.15) by BL6PEPF00020E5F.mail.protection.outlook.com (10.167.249.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.20 via Frontend Transport; Sat, 22 Mar 2025 17:48:17 +0000 Received: from p-exchbe-eqx-02.jnpr.net (10.104.9.15) by p-exchfe-eqx-02.jnpr.net (10.104.9.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14; Sat, 22 Mar 2025 12:48:16 -0500 Received: from p-exchbe-eqx-01.jnpr.net (10.104.9.14) by p-exchbe-eqx-02.jnpr.net (10.104.9.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14; Sat, 22 Mar 2025 12:48:16 -0500 Received: from p-mailhub01.juniper.net (10.104.20.6) by p-exchbe-eqx-01.jnpr.net (10.104.9.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14 via Frontend Transport; Sat, 22 Mar 2025 12:48:16 -0500 Received: from kaos.jnpr.net (kaos.jnpr.net [172.23.255.201]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id 52MHmErA014205; Sat, 22 Mar 2025 10:48:15 -0700 (envelope-from sjg@juniper.net) Received: by kaos.jnpr.net (Postfix, from userid 1377) id 739F938743; Sat, 22 Mar 2025 10:47:26 -0700 (PDT) Received: from kaos.jnpr.net (localhost [127.0.0.1]) by kaos.jnpr.net (Postfix) with ESMTP id 733B4387B5; Sat, 22 Mar 2025 10:47:26 -0700 (PDT) To: Warner Losh CC: "Steven Harms (High-Security Mail)" , "Emmanuel Vadot" , "freebsd-current@freebsd.org" , Subject: Re: Confused by boot_mute documentation, terminal systems, and goals In-Reply-To: References: <20250322080212.0fe0e090d8e942105e9feb65@bidouilliste.com> Comments: In-reply-to: Warner Losh message dated "Sat, 22 Mar 2025 10:02:34 -0600." From: "Simon J. Gerraty" X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.4 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 Content-Type: text/plain; charset="us-ascii" Content-ID: <44641.1742665646.1@kaos.jnpr.net> Date: Sat, 22 Mar 2025 10:47:26 -0700 Message-ID: <45025.1742665646@kaos.jnpr.net> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF00020E5F:EE_|DS0PR05MB9592:EE_ X-MS-Office365-Filtering-Correlation-Id: 38441d81-d647-4c64-89ea-08dd6969ba24 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|1800799024|376014|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Mqj10K+MOFevgF74yVyTH6EG5TkP7uh+PXrGNsnXg6I5rVpWl7aX7+3aW+WB?= =?us-ascii?Q?TdYup2a3fGZvC7ttco3af5/DWRafVpuARwgr8IKP8/FvjsRPDrx+Ht3pYUUx?= =?us-ascii?Q?4mOp3DuQMn6hIr4kbH5zyGza4EAMpwVNop5uA1K9WWRVf3PwMumAPikDvQqY?= =?us-ascii?Q?uXvgI7+iDup8dRsVOdDg788rM1Ehp2Ja3eCv0QoKyaKDGTndmAJxPgkLkRwb?= =?us-ascii?Q?1xfzF66gvVAZ45Yigc8wCv3UPPqjWQT1csWYqG+X67WDxojE0v2PtsmIf76g?= =?us-ascii?Q?UV73reACnfrsQVDOtD+3SVDUdGLaeGZdCZvYxNEhbhltxLzy9z1AWH0IL3PJ?= =?us-ascii?Q?hD5Cv/Rn1CbY01KvjPaYZ7WH1e8GGAFBvtmeytFmJvPlynYTvoTMH199Zb8L?= =?us-ascii?Q?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Sxr2Z96VIaA+9Wm3Czn9Ovb5OyQTPfqa?= =?us-ascii?Q?LDxdO2rB7jfJQ0U4WXgDqHj0HlrkOMzY3Ghb3o5Emrvtmp88pYuWSz1/c4cL?= =?us-ascii?Q?aSYqeZDPNjNHo4/NclHCFOjrOZLvWOAt7bnVf7Zu4d8XpUNOKlg3QXp7iH8W?= =?us-ascii?Q?YVaIlDPt+KhS4bE12GXZSQysQMlu1FZFAnOO2woATLUQHAvoUO7eePqrXAju?= =?us-ascii?Q?pKltpxE8Q2bPB7uTD9ksLhBIRH4VhtlpIJM3?= X-Forefront-Antispam-Report: CIP:66.129.239.15;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:p-exchfe-eqx-02.jnpr.net;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(1800799024)(376014)(36860700013);DIR:OUT;SFP:1102; X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2025 17:48:17.0355 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38441d81-d647-4c64-89ea-08dd6969ba24 X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4;Ip=[66.129.239.15];Helo=[p-exchfe-eqx-02.jnpr.net] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF00020E5F.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR05MB9592 X-Proofpoint-GUID: qVPmx9NjnDVcQS9Im_h5-xXEmm0GJkzJ X-Authority-Analysis: v=2.4 cv=Xun6OUF9 c=1 sm=1 tr=0 ts=67def7e7 cx=c_pps a=8NhCg2oU0sQOR5chO7ltBw==:117 a=YQU41r7WENJiSYrYYNJVsQ==:17 a=h8e1o3o8w34MuCiiGQrqVE4VwXA=:19 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=kj9zAlcOel0A:10 a=Vs1iUdzkB0EA:10 a=s63m1ICgrNkA:10 a=rhJc5-LppCAA:10 a=7Qk2ozbKAAAA:8 a=AjyGP3J-4Axe-91hD7UA:9 a=CjuIK1q_8ugA:10 a=1lyxoWkJIXJV6VJUPhuM:22 X-Proofpoint-ORIG-GUID: qVPmx9NjnDVcQS9Im_h5-xXEmm0GJkzJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1093,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-22_07,2025-03-21_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 lowpriorityscore=0 clxscore=1011 bulkscore=0 suspectscore=0 spamscore=0 impostorscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 adultscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2503220132 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:22843, ipnet:67.231.152.0/24, country:US] X-Rspamd-Queue-Id: 4ZKmy43f25z3Sx7 X-Spamd-Bar: ---- FWIW I recently added logic to our local.rc.subr to redirect output to a console.log if desired (some platforms boot quicker with less output going to console). It does nothing for output from kernel modules loaded by rc, but greatly reduces output and has the major benefit that we can examine the "console" output after the fact. Which is much more useful than sending the output to /dev/null. The above is much easier done in our env as we have an initial rootfs which is an iso image, and run a preboot script which does things like mounting the real rootfs after fsck etc before running the real init(8). That preboot can thus take care of rotating and initializing console.log or disabiling it under various circumstances, and we set rc_config_xtra in local.rc.subr so we can tell when it is being read for first the so we can redirect output again for rc. Doing something like that via rc alone would be "tricky". Warner Losh wrote: > If you rarely want silence to the login prompt, we likely need to find > a way to redirect the console output to a second screen or > something. I thought we had a null console, but that appears to be > only in the boot loader. The rc output goes to the first console in > the list of all the consoles since that's what /dev/console is > connected to. One much wanted, often started but not finished project > is to actually make /dev/console connected to all the consoles > together.