fs/ext2: remove count- and time-based fsck
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 11 Apr 2013 12:17:54 +0000 (12:17 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 12 Apr 2013 12:45:47 +0000 (14:45 +0200)
Set the count- and time-based checks intervals to 0, thus effectively
disabling automatic checks at boot (after a suggestion by Arnout).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
fs/ext2/genext2fs.sh

index 76f454c3cc4b5a0753feb303299944ec290878ad..a4eb35162c437421e4e9df859ae0f49f73d6033f 100755 (executable)
@@ -73,8 +73,11 @@ e2tunefsck() {
            "${IMG##*/}" "${GEN}"
 
     # e2fsck will force a *random* UUID, which is bad
-    # for reproducibility, so we do not want it
-    tune2fs -U clear "${IMG}"
+    # for reproducibility, so we do not want it.
+    # Remove count- and time-based checks, they are not welcome
+    # on embedded devices, where they can cause serious boot-time
+    # issues by tremendously slowing down the boot.
+    tune2fs -U clear -c 0 -i 0 "${IMG}"
 }
 
 # Check we know what generation to generate