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

Re: Skipping fsck during boot with systemd?

On Wed, 10 Dec 2014, Chris Bannister wrote:
> On Tue, Dec 09, 2014 at 09:48:58AM +0100, Frédéric Marchal wrote:
> > Now, is it possible to run fsck during shutdown? Users have been asking for 
> > this for at least 10 years. Is it now acceptable, possible, tolerated?

It was proposed that we do this sometime ago, there's a bug open somewhere
(likely either in sysvinit, initscripts).

> That sounds like a recipe for disaster. Do you mean *before* shutdown?

It is not a disaster, but you must not do it if the platform reports it is
on battery, or when it is doing an UPS-initiated shutdown, or any other sort
of emergency shutdown.

(UPS: http://en.wikipedia.org/wiki/Uninterruptible_power_supply).

So far, so good, that's no show-stopper.  We could make it optional, or we
could implement the gross hacks we already have to detect ups-initiated
shutdowns and skip the fsck-on-shutdown.  We can properly detect "laptop on
battery" as well in most devices/platforms.

But nobody got around to writing the code.  It is simple as that.

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: