From nobody Tue Jun 21 16:20:06 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 02DF287558E for ; Tue, 21 Jun 2022 16:19:53 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LSBYh6Ymkz4vR9 for ; Tue, 21 Jun 2022 16:19:52 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655828392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9VuQDPS1B/tHOFKD22B2COx4wFiF4mgSA6bRNWLcO6k=; b=RWZldbY8hGRNMMTACndmZQ1CjJIHuq0Sor5jDlARCgClN5VBqjwApCjyf2T1jnsvX6wC0S NBPqLAKa6OB8YD9gWUiRI5mOGZpCAg4qmW5hi6Cp9qjJkhZYsWa1ttcQL7NL5fYFmlj+gI Wio8ePAXzNGbVP37aVFPEI8Ok6GgUbgwySImJxB2Ei+4CDgTx21DfqAEqa0QcVeDuuwF0j r3F1zEDfd6xeDD3uQlnIWn+bCZgEOtH9KRv/RXeyfXx3KpWBTZnIHGDZtE8vdV5ZKhVxwO 7r1EyRU+NHMegGSt1qRt9abyQy1oTugHA7rXdCMkpExqwLREcUKZXRIFtX7Phw== Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id B927C6221 for ; Tue, 21 Jun 2022 16:19:52 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lf1-f50.google.com with SMTP id t24so10992983lfr.4 for ; Tue, 21 Jun 2022 09:19:52 -0700 (PDT) X-Gm-Message-State: AJIora9xwrdNFoyUMY9ztt5ay3JJJ8A6T2wSywUUsNNbT1YdBgbDISs+ JGZQ1a3NWjxr2cHnjA63BQ77AJmNHP1GWRl7QBg= X-Google-Smtp-Source: AGRyM1tcyncYEtLGt2GmS+mdkaOVsVk/c1BjrcPKVYkSaG57Y/Gc3kjhFZJoc/ee6Qyreq7LOxTqIeHxq0kjn0v+VmQ= X-Received: by 2002:a05:6512:3d08:b0:47f:79a9:66f0 with SMTP id d8-20020a0565123d0800b0047f79a966f0mr3641912lfv.576.1655828391322; Tue, 21 Jun 2022 09:19:51 -0700 (PDT) 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 References: <202206211617.25LGH9sY053787@gndrsh.dnsmgr.net> In-Reply-To: <202206211617.25LGH9sY053787@gndrsh.dnsmgr.net> From: Kyle Evans Date: Tue, 21 Jun 2022 09:20:06 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Updating reboot's default To: "Rodney W. Grimes" Cc: Warner Losh , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset="UTF-8" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655828392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9VuQDPS1B/tHOFKD22B2COx4wFiF4mgSA6bRNWLcO6k=; b=wyySEeEC50KOZJvYhxqjfmw1I/f5LiybnIVeNCdZjmUjbfExJuS7IaF1kvLig4ErLbmGQA GUYBOQnQB4h9tXlMG2We6iIQT3sGF6czbmxMYCx8IzEq1PhdiVrLRarMKtCyIDDxdvSI+x L5OqbqFDcgFSouGlbQXh2YzdQd9SricnPUvp5Aem+18owbfl8TuDnTJTobRKCVeH/Ht/ZU XmMKRVyl6kTO9j37oSUCoyZ40S4YgHRbP2acSOvhp2d0DN28e+zkVagH38xq535eq3DsQM kWJ4tmo0x03CQCpoNDjbuk5pf1Z08bHu2YgGpjc2/7PKM4Gp/3TGQJySzRgXrA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655828392; a=rsa-sha256; cv=none; b=d1TN6h4YsjJ1DG50gfylq/viatRI6pMk3PX4+goCO0PPYWcCOgPddxFXOdP7EOALuWWiJV 95YWsIiGnbQR9M8R1XW2Z754EovB4KEvWgFUtLYDHpDviYv5qe+XPg6LjzigFTP88H7HCX MVEwDcbOZl687f/M2oje7PjeLOhAiQEHC0MpJ4EB5VWE+aWR0IGaI2cMOoqoJ8pmkejvos dE4x/KAQWIaQBBLz/Gavk58/KRvCJeaDfcFBgbNyfC6cAbxMVSm4umQnCJkkuC3c9szjZe hT+LntfkLhdmCTx9XzHMnMR4ercoFEeg5Jgy6I0/z4QNVfqLm+lt4xr9OeTnjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On Tue, Jun 21, 2022 at 9:17 AM Rodney W. Grimes 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? > > > > Warner > > That isnt a reboot any more, that is a re-root, and I thought > that re-root requires certain other things to be in place for it > to work correctly, or perhaps I am mis-remebering that. Also doesnt > this preserve a large amount of prior state? > Note a later correction -- he meant "shutdown -r", rather than re-root.