From nobody Tue Jun 21 14:04:47 2022 X-Original-To: freebsd-arch@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 9C9D285CB0A for ; Tue, 21 Jun 2022 14:05:01 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4LS7Z373KFz4T87 for ; Tue, 21 Jun 2022 14:04:59 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 6B52E320092E; Tue, 21 Jun 2022 10:04:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 21 Jun 2022 10:04:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1655820291; x=1655906691; bh=0rh/pz5e1xqv5JLFvhMorRSbWSm8 vRf2+6ZnzGZQy3U=; b=imuUdQs44K/9qjCgo89pSdHiis342vWvEEAWN8Bi/+hQ sAaWopQGRw8uaGuATutxNFTAWI1Tu5Df/meMA+ySNqQ8+MvU9POCV2C4glS1DvQB qnkoRP4g3CSvarO12IwjHcKWnQU9IpkClEuYbHJAS5GayHwv69mOAtF8xU+Oqw6K tKpBAVzwJu0o5sDYCBaQ8kI6WXz8StTOwxwViHNVOUQ//tjvaaJ7N0GEXAI+2pV+ VbQeWWwV2QqcOx31cfm940gvnIYc/Rs+RLWI3p9Y7n4vMjjmCjoOlSXMskFln8q+ MDft5msB49yWoXPdsVvmzgPnPLDcOFa2tOdnt2Af+Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeffedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefvohhmucflohhnvghsuceothhhjhesfhhrvggvsghsugdr ohhrgheqnecuggftrfgrthhtvghrnheplefhjeelteelgfefffeiffevudfggffgveevje egkeegvedtleektdehfedvgeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepthhhjhesfhhrvggvsghsugdrohhrgh X-ME-Proxy: Feedback-ID: ib75146ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Jun 2022 10:04:50 -0400 (EDT) Date: Tue, 21 Jun 2022 15:04:47 +0100 From: Tom Jones To: Warner Losh Cc: "freebsd-arch@freebsd.org" Subject: Re: Updating reboot's default Message-ID: References: List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LS7Z373KFz4T87 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=imuUdQs4; dmarc=none; spf=softfail (mx1.freebsd.org: 64.147.123.19 is neither permitted nor denied by domain of thj@freebsd.org) smtp.mailfrom=thj@freebsd.org X-Spamd-Result: default: False [-3.87 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[messagingengine.com:s=fm2]; FREEFALL_USER(0.00)[thj]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.985]; R_SPF_SOFTFAIL(0.00)[~all:c]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.98)[-0.981]; MLMMJ_DEST(0.00)[freebsd-arch]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.19:from] X-ThisMailContainsUnwantedMimeParts: N On Tue, Jun 21, 2022 at 08:01:58AM -0600, Warner Losh wrote: > 15 or 20 years ago, we talked about changing the default for reboot from > 'right now' to being safe shutdown. There were arguments made against it > due to tiny appliances and such. > > Time has past, and this oddity has persisted. It's time to revisit that > decision. > > I'd propose that we keep 'fastboot' and 'fasthalt' having the immediate > behavior. However, the 'reboot' command will switch from '-q' behavior to > '-r' behavior. > > I'll update the man page, etc to reflect these new defaults. Most of the > systems I've been on in the last 10-15 years have had some flavor of 'alias > reboot reboot -r' in their login scripts and/or made shell scripts that did > this. This will match what everybody else is doing, and will likely result > in less astonishment rather than more, even though it changes a > long-standing default behavior. > > Comments? +1 I was perplex for a long time why reboot did this and especially when I was using it to boot test kernels. The current behaviour is not what I or I think most people expect. - Tom