[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] reboot: recognize and ignore -f/--force

From: Samuel Thibault
Subject: Re: [PATCH] reboot: recognize and ignore -f/--force
Date: Sat, 23 Oct 2021 23:25:05 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Sergey Bugaev, le mar. 19 oct. 2021 15:41:58 +0300, a ecrit:
> On Tue, Oct 19, 2021 at 3:18 PM Samuel Thibault <samuel.thibault@gnu.org> 
> wrote:
> > IIRC the kernel does unmount filesystems and flushes caches before
> > actually rebooting.
> These two comments provide some more details:
> "reboot doesn't sync: do that yourself before calling this." [0]
> "The kernel will automatically flush ATA disks and suchlike on
> reboot(), but the file systems need to be synced explicitly in
> advance." [1]

Uh. I really don't find this useful :)

> The point of 'reboot --force --force' is to be able to
> programmatically reboot the system *somehow* if PID 1 is in a broken
> state,

Yep, sure.

> But maybe something else is broken, maybe /hurd/startup has crashed,
> maybe /servers/startup does not resolve for whatever reason (doesn't
> exist, broken permissions, ext2fs bugs). That's when I'd expect
> 'reboot-hurd --force' to be of use.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]