FS#26154 - [initscripts] fsck: add fastboot functionality

Attached to Project: Arch Linux
Opened by Mark (voidzero) - Thursday, 29 September 2011, 23:21 GMT
Last edited by Tom Gundersen (tomegun) - Thursday, 02 February 2012, 16:09 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

From the shutdown manpage:

-f Skip fsck on reboot

The -f flag means `reboot fast'. This only creates an advisory file /fastboot which can be tested by the system when it comes up again. The boot rc file can test if this file is present, and decide not to run fsck(1) since the system has been shut down in the proper way. After that, the boot process should remove /fastboot.

Archlinux currently does nothing with this and the /fastboot file persisently remains on the root device. I'd suggest to either handle the file (instruction) properly (yes, skip fsck on boot if requested) or just delete the file. I'd advice against the second option though. On a headless, networking-dependent box the use of this switch can spare a stressed admin from a trip to the datacenter in case fsck starts to b0rk, expected or not.
This task depends upon

Closed by  Tom Gundersen (tomegun)
Thursday, 02 February 2012, 16:09 GMT
Reason for closing:  Implemented
Additional comments about closing:  in git
Comment by Tom Gundersen (tomegun) - Sunday, 09 October 2011, 12:41 GMT
I'd be happy to take a patch for this, if not I'll probably do it myself when I can find the time. Please post any patches to arch-projects@archlinux.org (you'll need to sign up first).

This should be treated together with forcefsck, something like this:

kernel commandline takes precedence over flag files. It might make sense to add support for fsck.mode={auto,force,skip} as the kernel params.

/forcefsck and /fastboot should be deleted by arch-tmpfiles.

Loading...