Patchwork [6/6] fs/ext2: remove count- and time-based fsck

login
register
mail settings
Submitter Yann E. MORIN
Date March 7, 2013, 10:04 p.m.
Message ID <20da59bb44bf9f9331f343a2c7308b7aaa5cb834.1362693453.git.yann.morin.1998@free.fr>
Download mbox | patch
Permalink /patch/225983/
State Changes Requested
Headers show

Comments

Yann E. MORIN - March 7, 2013, 10:04 p.m.
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>
---
 fs/ext2/genext2fs.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
Arnout Vandecappelle - March 12, 2013, 5:46 p.m.
On 03/07/13 23:04, Yann E. MORIN wrote:
> 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>

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Patch

diff --git a/fs/ext2/genext2fs.sh b/fs/ext2/genext2fs.sh
index c466bc2..e4177ae 100755
--- a/fs/ext2/genext2fs.sh
+++ b/fs/ext2/genext2fs.sh
@@ -70,8 +70,9 @@  e2tunefsck() {
     esac
     printf "e2fsck was successfully run on rootfs.ext${GEN}\n"
 
-    # e2fsck will force a UUID, which we do not want
-    tune2fs -U clear "${IMG}"
+    # e2fsck will force a UUID, which we do not want;
+    # remove count- and time-based checks
+    tune2fs -U clear -c 0 -i 0 "${IMG}"
 }
 
 # Check we know what generation to generate