Date: Wed, 22 Jun 2022 11:12:14 -0600 From: Warner Losh <imp@bsdimp.com> To: Michael Gmelin <grembo@freebsd.org> Cc: "Greg 'groggy' Lehey" <grog@freebsd.org>, Warner Losh <imp@freebsd.org>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org> Subject: Re: Updating reboot's default Message-ID: <CANCZdfoMTVCMdG7Gy_x0W=-YFr1rz4-uH9nfutDb3AdALWA8Rg@mail.gmail.com> In-Reply-To: <546C53F4-E30F-4DAF-BE33-B1772A23ABAE@freebsd.org> References: <CANCZdfrO-V5756-EAnsbPXFALXFysDoedat%2Bs36NB0aUmu2fjQ@mail.gmail.com> <546C53F4-E30F-4DAF-BE33-B1772A23ABAE@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000e7bd5e05e20c709e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 22, 2022 at 1:03 AM Michael Gmelin <grembo@freebsd.org> wrote: > > > On 22. Jun 2022, at 04:03, Warner Losh <imp@bsdimp.com> wrote: > > =EF=BB=BF > > > On Tue, Jun 21, 2022, 6:35 PM Greg 'groggy' Lehey <grog@freebsd.org> > wrote: > >> On Tuesday, 21 June 2022 at 8:01:58 -0600, Warner Losh wrote: >> > 15 or 20 years ago, we talked about changing the default for reboot fr= om >> > '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 tha= t >> > decision. >> > >> > I'd propose that we keep 'fastboot' and 'fasthalt' having the immediat= e >> > behavior. However, the 'reboot' command will switch from '-q' behavior >> to >> > '-r' behavior. >> >> Somehow I hear this echo "If it ain't broke, don't fix it". My >> understanding has always been that shutdown(8) is the program that >> shuts down and maybe reboots the system, while reboot(8) is a quick >> and dirty way to reboot the system, along with halt(8) if you don't >> want to reboot. >> >> So why change this? At the very least you'll confuse people who want >> to use the old method. My guess is that you have some reason that's >> not immediately apparent, but what? >> > > Other systems have the behavior I'm advocating. We are the odd duck. This > means we tend to violate POLA here. And there is no good reason to do thi= s > when fastboot is available. Nobody that advocated to keep this difference > as useful the last time it came up still wants to advocate. Most people > find the behavior annoying and only a vanishingly small minority of peopl= e > like it. In fact, so far nobody has even asked to please not, let alone > come up with a good reason to retain this behavior. So, I'm polling arch@ > to see if anyone like that shows up. > > > Well, to be honest, I=E2=80=99m used to the current behavior and would pr= efer to > keep it (POLA for existing users). I didn=E2=80=99t answer to advocate ag= ainst the > change as > > 1. I have no metric to counter your argument that this is a real problem > for people used to other OSes (neither how many people pick up FreeBSD in > general nor how many are unpleasantly surprised by how `reboot` works) > 2. I will certainly be able to adapt and get used to the new behavior > 3. Given the amount of change in the world right now, it=E2=80=99s a =E2= =80=9Cpick your > battles=E2=80=9D situation. There is and will be so much to suck up, argu= ing about > this with someone who clearly put some thought into it seems like a waste > of everybody=E2=80=99s time. > I posted so I could understand other views, so I'd like to ask some questions if I may. Is your reliance on the current default due to shell and similar scripts you have? Or is it due to your interactive operations? What do you like about the current behavior: How quickly the reboot happens? Or you have a lot of running processes you don't want killed or to have a chance to clean up? What build process do you use to create your FreeBSD images? Images from the RE, buildworld, nanobsd, poudriere, etc... The only thought I've put into this is from my perspective, and while it is often a good reflection of the larger community, there are times there's a mismatch, so I'd like to at least understand why you hold these views. There may be a simple way to accommodate both sides. Warner > Cheers > Michael > > Warner > > > And no, I don't really have an axe to grind in this matter. >> >> Greg >> -- >> Sent from my desktop computer. >> See complete headers for address and phone numbers. >> This message is digitally signed. If your Microsoft mail program >> reports problems, please read http://lemis.com/broken-MUA.php >> > --000000000000e7bd5e05e20c709e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jun 22, 2022 at 1:03 AM Micha= el Gmelin <<a href=3D"mailto:grembo@freebsd.org">grembo@freebsd.org</a>&= gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0= px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div = dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr"><br></div><div dir=3D"= ltr"><br><blockquote type=3D"cite">On 22. Jun 2022, at 04:03, Warner Losh &= lt;<a href=3D"mailto:imp@bsdimp.com" target=3D"_blank">imp@bsdimp.com</a>&g= t; wrote:<br><br></blockquote></div><blockquote type=3D"cite"><div dir=3D"l= tr">=EF=BB=BF<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div= dir=3D"ltr" class=3D"gmail_attr">On Tue, Jun 21, 2022, 6:35 PM Greg 'g= roggy' Lehey <<a href=3D"mailto:grog@freebsd.org" target=3D"_blank">= grog@freebsd.org</a>> wrote:<br></div><blockquote class=3D"gmail_quote" = style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa= dding-left:1ex">On Tuesday, 21 June 2022 at=C2=A0 8:01:58 -0600, Warner Los= h wrote:<br> > 15 or 20 years ago, we talked about changing the default for reboot fr= om<br> > 'right now' to being safe shutdown. There were arguments made = against it<br> > due to tiny appliances and such.<br> ><br> > Time has past, and this oddity has persisted. It's time to revisit= that<br> > decision.<br> ><br> > I'd propose that we keep 'fastboot' and 'fasthalt'= having the immediate<br> > behavior. However, the 'reboot' command will switch from '= -q' behavior to<br> > '-r' behavior.<br> <br> Somehow I hear this echo "If it ain't broke, don't fix it"= ;.=C2=A0 My<br> understanding has always been that shutdown(8) is the program that<br> shuts down and maybe reboots the system, while reboot(8) is a quick<br> and dirty way to reboot the system, along with halt(8) if you don't<br> want to reboot.<br> <br> So why change this?=C2=A0 At the very least you'll confuse people who w= ant<br> to use the old method.=C2=A0 My guess is that you have some reason that'= ;s<br> not immediately apparent, but what?<br></blockquote></div></div><div dir=3D= "auto"><br></div><div dir=3D"auto">Other systems have the behavior I'm = advocating. We are the odd duck. This means we tend to violate POLA here. A= nd there is no good reason to do this when fastboot is available. Nobody th= at advocated to keep this difference as useful the last time it came up sti= ll wants to advocate. Most people find the behavior annoying and only a van= ishingly small minority of people like it. In fact, so far nobody has even = asked to please not, let alone come up with a good reason to retain this be= havior. So, I'm polling arch@ to see if anyone like that shows up.</div= ><div dir=3D"auto"><br></div></div></div></blockquote><div><br></div><div>W= ell, to be honest, I=E2=80=99m used to the current behavior and would prefe= r to keep it (POLA for existing users). I didn=E2=80=99t answer to advocate= against the change as</div><div><br></div><div>1. I have no metric to coun= ter your argument that this is a real problem for people used to other OSes= (neither how many people pick up FreeBSD in general nor how many are unple= asantly surprised by how `reboot` works)</div><div>2. I will certainly be a= ble to adapt and get used to the new behavior</div><div>3. Given the amount= of change in the world right now, it=E2=80=99s a =E2=80=9Cpick your battle= s=E2=80=9D situation. There is and will be so much to suck up, arguing abou= t this with someone who clearly put some thought into it seems like a waste= of everybody=E2=80=99s time.</div></div></blockquote><div><br></div><div>I= posted so I could understand other views, so I'd like to ask some ques= tions if I may.</div><div><br></div><div>Is your reliance on the current de= fault due to shell and similar scripts you have? Or is it due to your inter= active operations?</div><div>What do you like about the current behavior: H= ow quickly the reboot happens? Or you have a lot of running processes you d= on't want killed or to have a chance to clean up?</div><div>What build = process do you use to create your FreeBSD images? Images from the RE, build= world, nanobsd, poudriere, etc...</div><div><br></div><div>The only thought= I've put into this is from my perspective, and while it is often a goo= d reflection of the larger community, there are times there's a mismatc= h, so I'd like to at least understand why you hold these views. There m= ay be a simple way to accommodate=C2=A0both sides.</div><div><br></div><div= >Warner<br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><div dir=3D"auto"><div>Cheers</div><div>Michael</div><br><blockq= uote type=3D"cite"><div dir=3D"ltr"><div dir=3D"auto"><div dir=3D"auto">War= ner=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div= dir=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" = style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa= dding-left:1ex"> And no, I don't really have an axe to grind in this matter.<br> <br> Greg<br> --<br> Sent from my desktop computer.<br> See complete headers for address and phone numbers.<br> This message is digitally signed.=C2=A0 If your Microsoft mail program<br> reports problems, please read <a href=3D"http://lemis.com/broken-MUA.php" r= el=3D"noreferrer noreferrer" target=3D"_blank">http://lemis.com/broken-MUA.= php</a><br> </blockquote></div></div></div> </div></blockquote></div></blockquote></div></div> --000000000000e7bd5e05e20c709e--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoMTVCMdG7Gy_x0W=-YFr1rz4-uH9nfutDb3AdALWA8Rg>