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.thiba...@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. Alright! Samuel